create_coordinates {gghilbertstrings} | R Documentation |
Function to create coordinates for a Hilbert Curve This functions adds three columns to a data frame: reld, x, y
create_coordinates(df, idcol)
df |
the dataframe to use |
idcol |
the column to use for mapping |
a data frame with three additional columns
mtcars %>% tibble::rownames_to_column() %>% create_id_column(rowname) %>% create_coordinates(gghid)