View source: R/Visualization.R
coordinate_rotate | R Documentation |
Coordinates rotation for visualization.
coordinate_rotate(pos, theta=0)
pos |
a matrix, the n-by-d coordinates, where n is the number of coordinates, d is the dimension of coordinates. |
theta |
a real number, the angle for counter-clock-wise rotation. |
Nothing
Return a rotated coordinate matrix.
nothing
Wei Liu
None
x <- 1:100
pos <- cbind(x, sin(pi/4*x))
oldpar <- par(mfrow = c(1,2))
plot(pos)
plot(coordinate_rotate(pos, 40))
par(oldpar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.