View source: R/rgm-auxilaryfunctions.R
rot | R Documentation |
Rotates locations to align with the mean vector direction.
rot(loc)
loc |
Matrix of locations to rotate. |
Matrix of rotated locations.
# Example usage with a 2-column matrix representing locations.
loc <- matrix(rnorm(20), ncol = 2)
rotated_loc <- rot(loc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.