rotation {GeoXp}R Documentation

Transform coordinates of sites using a rotation

Description

The function `rotation' is used to modify coordinates of sites by a rotation with an angle equal to $angle$.

Usage

rotation(coords, angle)

Arguments

coords matrix $ntimes2$ of coordinates
angle value of angle to use in rotation in degree

Details

Let:

x=(cos(theta),-sin(theta))

y=(sin(theta),cos(theta))

nlecoord=coords times cbind(x,y)

Value

matrix $ntimes 2$ of new coordinates.

Author(s)

Thomas-Agnan C., Aragon Y., Ruiz-Gazen A., Laurent T., Robidou L.

References

Aragon Yves, Perrin Olivier, Ruiz-Gazen Anne, Thomas-Agnan Christine (2008), ``Statistique et Econométrie pour données géoréférencées : modèles et études de cas''

See Also

angleplotmap,variocloudmap


[Package GeoXp version 1.2 Index]