rotatePos | R Documentation |
Rotate position by angle theta in radians
rotatePos(pos, theta)
pos |
Position matrix of x-y coordinates |
theta |
Angle of rotation in radians |
Position matrix with x-y coordinates rotated
pos <- cbind(rnorm(10), rnorm(10)) posRotated <- rotatePos(pos, pi/2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.