rotation: Transform coordinates of sites using a rotation

View source: R/rotation.R

rotationR 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. This function is ude in deriftmap

Usage

rotation(coords, angle)

Arguments

coords

matrix n\times 2 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 n\times 2 of new coordinates.

Author(s)

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

References

Thibault Laurent, Anne Ruiz-Gazen, Christine Thomas-Agnan (2012), GeoXp: An R Package for Exploratory Spatial Data Analysis. Journal of Statistical Software, 47(2), 1-23.

See Also

angleplotmap,variocloudmap


tibo31/GeoXp documentation built on April 8, 2023, 7:50 a.m.