powered by
Function to create coordinates for a Hilbert Curve This functions adds three columns to a data frame: reld, x, y
create_coordinates(df, idcol)
the dataframe to use
the column to use for mapping
a data frame with three additional columns
# NOT RUN { mtcars %>% tibble::rownames_to_column() %>% create_id_column(rowname) %>% create_coordinates(gghid) # }
Run the code above in your browser using DataLab