coord2rad | R Documentation |
From coordinates of the end point of a vector in 2 dimensions to the angle between this vector and the x-axis
coord2rad(x, y = NULL, control.circular = list())
x |
a |
y |
a vector. |
control.circular |
the attribute of the resulting object. |
an object of class circular
Claudio Agostinelli and Frederick T. Wehrle
circular
set.seed(1234)
x <- cbind(rnorm(20), rnorm(20))
y <- coord2rad(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.