Description Usage Arguments Value Examples
polar_transform
rotates cartesian coordinates about the origin at a given degree
1 | polar_transform(data, rotation = 0, plots = TRUE)
|
data |
a dataframe containing cartesian coordinates labeled x and y |
rotation |
The desired value of rotation in degrees |
plots |
if |
A dataframe is printed to the console containing original cartesian (x, y) values and the new rotated (new.x, new.y) values. If plots = TRUE
a plot showing both the original and new coordinates (colored green) is plotted
1 | polar_transform(data = dataframe, rotation = 45, plots = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.