Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coord2rad

Angles between a vector and the x-axis


Description

From coordinates of the end point of a vector in 2 dimensions to the angle between this vector and the x-axis

Usage

coord2rad(x, y = NULL, control.circular = list())

Arguments

x

a matrix or a data.frame with two columns if y is NULL otherwise a vector.

y

a vector.

control.circular

the attribute of the resulting object.

Value

an object of class circular

Author(s)

Claudio Agostinelli and Frederick T. Wehrle

See Also

Examples

set.seed(1234)
x <- cbind(rnorm(20), rnorm(20))
y <- coord2rad(x)

circular

Circular Statistics

v0.4-93
GPL-2
Authors
Ulric Lund <ulund@calpoly.edu> [aut], Claudio Agostinelli <claudio.agostinelli@unitn.it> [aut, cre], Hiroyoshi Arai <h_arai@aoni.waseda.jp> [ctb], Alessando Gagliardi <gagliardi@stud.unive.it> [ctb], Eduardo Garcia Portugues <edgarcia@est-econ.uc3m.es> [ctb], Dimitri Giunchi <dimitri.giunchi@unipi.it> [ctb], Jean-Olivier Irisson <irisson@normalesup.org> [ctb], Matthew Pocernich <pocernic@ucar.edu> [ctb], Federico Rotolo [ctb]
Initial release
2017-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.