Most of the functions in the penrosetiling package use triangles in a wide format, meaning all the points are in one row. For graphing with ggplot2 and other data manipulation, it is better to have the data in long format, meaning one point per row with a column labeling the point order. This function convert a wide data set to a long one. It serves mostly as a small utility function.

pivot_down(df)

Arguments

df

Data set of triangles in wide format

Value

Data set of triangles in long format

Examples

return_starting_circle(0, 0, 0, 5, "t") %>% pivot_down()