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

Description

Function to create coordinates for a Hilbert Curve This functions adds three columns to a data frame: reld, x, y

Usage

create_coordinates(df, idcol)

Arguments

df

the dataframe to use

idcol

the column to use for mapping

Value

a data frame with three additional columns

Examples

mtcars %>% tibble::rownames_to_column() %>% create_id_column(rowname) %>% create_coordinates(gghid)

[Package gghilbertstrings version 0.3.3 Index]