rotation {GeoXp} | R Documentation |
The function `rotation' is used to modify coordinates of sites by a rotation with an angle equal to $angle$.
rotation(coords, angle)
coords |
matrix $ntimes2$ of coordinates |
|
|
angle |
value of angle to use in rotation in degree |
Let:
x=(cos(theta),-sin(theta))
y=(sin(theta),cos(theta))
nlecoord=coords times cbind(x,y)
matrix $ntimes2$ of new coordinates.
Thomas-Agnan C., Aragon Y., Ruiz-Gazen A., Laurent T., Robidou L.
Aragon Yves, Perrin Olivier, Ruiz-Gazen Anne, Thomas-Agnan Christine (2006), ``Statistique et Econométrie pour données géoréférencées : modèles et études de cas''