reorientCoordinatesBy | R Documentation |
Rotate coordinates in a data frame relative to reference angle.
reorientCoordinatesBy(df, X, Y, orient, CCW = FALSE)
df |
Data frame with at least 2 columns. |
X |
name of column with X coordinates. |
Y |
name of column with Y coordinates. |
orient |
Either numeric specifying one angle to use for all coordinates or a string specifying the column with reference angles. |
CCW |
(boolean) |
Data frame with X and Y rotated by the angles in orient
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.