Learn R Programming

gghilbertstrings (version 0.3.3)

create_coordinates: 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

Run this code
# NOT RUN {
mtcars %>% tibble::rownames_to_column() %>% create_id_column(rowname) %>% create_coordinates(gghid)
# }

Run the code above in your browser using DataLab