coord2rad: Angles between a vector and the x-axis

View source: R/coord2rad.R

coord2radR Documentation

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

circular

Examples

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

circular documentation built on Sept. 8, 2023, 6:03 p.m.