rotater {arrowheadr} | R Documentation |
Rotate a 2-column matrix
rotater(x, theta, center = c(0, 0), degrees = FALSE)
x |
a 2-column matrix |
theta |
angle |
center |
point of rotation |
degrees |
if TRUE, theta is in degrees instead of radians |
a rotated 2-column matrix
x <- matrix(seq(10), ncol = 2)
rotater(x, pi)