rotatePos: Rotate position by angle theta in radians

View source: R/plot.R

rotatePosR Documentation

Rotate position by angle theta in radians

Description

Rotate position by angle theta in radians

Usage

rotatePos(pos, theta)

Arguments

pos

Position matrix of x-y coordinates

theta

Angle of rotation in radians

Value

Position matrix with x-y coordinates rotated

Examples

pos <- cbind(rnorm(10), rnorm(10))
posRotated <- rotatePos(pos, pi/2)


JEFworks/MERingue documentation built on June 11, 2022, 4:16 a.m.