powered by
Perform a mathematical reflection of coordinates over a specified axis
reflect(df, over_x = FALSE, over_y = TRUE)
The reflected data frame
The data frame to reflect. It must have x and y columns
x
y
A boolean indicating whether or not to reflect over the x axis. Default: FALSE
A boolean indicating whether or not to reflect over the y axis. Default: TRUE
reflect(data.frame(x = 1, y = 0))
Run the code above in your browser using DataLab