rotateAxes | R Documentation |
Rotate axes
rotateAxes(x, y, angle, inverse = FALSE)
x |
a numeric vector of the x-component value(s) |
y |
a numeric vector of the y-component value(s) |
angle |
rotation angle in degrees |
inverse |
logical value indicating whether or not to do inverse transformation, default is |
This function rotates points in a x-y Cartesian coordinate system. Setting inverse = TRUE
is effectively the
same as multiplying the provided angle
by -1
, so for example, providing parameters angle = 50
and inverse = TRUE
would give
the same results providing parameters angle = -50
and inverse = FALSE
.
list of rotated x and y components as X
and Y
.
Chantelle Layton
Basic explanation for rotation of axes https://en.wikipedia.org/wiki/Rotation_of_axes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.