rot {rgm} | 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)