View source: R/utils_geometry.R
tr_rt | R Documentation |
Rotate then translate a 2D object
tr_rt(data, x0, y0, a, index = NULL)
data |
dataframe with x and y coordinates, and id columns |
x0 , y0 |
shift in x and y axis (units) |
a |
rotation angle (radian) |
index |
string for the index column to be added from the original data |
a dataframe with new coordinates columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.