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 nx2 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 x cbind(x,y)

Value

matrix nx2 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 (2009), 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.4 Index]