rotate | R Documentation |
Apply a rotation of vectors in the 1-2 plane about the 3-axis
rotate(X1, X2 = NULL, theta.deg = 0, hand.rule = c("right", "left"))
## Default S3 method:
rotate(X1, X2 = NULL, theta.deg = 0, hand.rule = c("right", "left"))
X1 |
numeric; 1-axis components |
X2 |
numeric; 2-axis components |
theta.deg |
numeric; the rotation, in degrees, to apply |
hand.rule |
character; the sense of rotation |
... |
additional parameters |
If X2
is null the function assumes X1
is a two column
object, and that the first column is the 1-axis information.
hand.rule
determines whether the rotation is clockwise ("left")
or–the default–anti-clockwise ("right").
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.