powered by
Do transformations in a desired order
transformer( x, rescale = c(1, 1), rotate = 0, nudge = 0, center = c(0, 0), degrees = FALSE, transformations = c("unitizer", "rescaler", "nudger", "rotater") )
a matrix
a 2-column matrix
a single value or a vector with length equal to the number of columns in x
angle in radians unless degrees is true
if TRUE, angles are degrees instead of radians
a vector of transformation functions
xy <- matrix(c(0,0,1,1), nrow = 2) transformer(xy, transformations = "rotater", rotate = pi)
Run the code above in your browser using DataLab