View source: R/coordinate-transformations.R
reflect | R Documentation |
Perform a mathematical reflection of coordinates over a specified axis
reflect(df, over_x = FALSE, over_y = TRUE)
df |
The data frame to reflect. It must have |
over_x |
A boolean indicating whether or not to reflect over the x axis. Default: FALSE |
over_y |
A boolean indicating whether or not to reflect over the y axis. Default: TRUE |
The reflected data frame
reflect(data.frame(x = 1, y = 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.