Description Usage Arguments Value Author(s) See Also Examples
Conversion for Circular Data from one coordinate/units system to another one. For back compatibility, without arguments the function converts data from degrees to radians.
1 2 |
x |
an object of class |
units |
unit of the transformed data. |
type |
type of the transformed data. If |
template |
template of the tranformed data. If |
modulo |
modulo of the transformed data. If |
zero |
zero of the tranformed data. If |
rotation |
rotation of the tranformed data. If |
an object of class circular with the specified unit of measure, modulo, zero and rotation.
Claudio Agostinelli
deg and rad. If you want to set the properties of an object instead to tranform it, you can use circular or circularp<-.
1 2 3 4 5 6 7 8 9 10 11 12 | x <- rvonmises(n=10, mu=circular(0), kappa=9, control.circular=list(units="degrees"))
par(mfcol=c(2, 2))
plot(x)
y <- conversion.circular(x) # only the unit is changed (to radians) and
####### the data converted.
plot(y)
z <- conversion.circular(x, units="degrees", zero=pi) # only the zero is changed and
####### the data converted.
plot(z)
w <- conversion.circular(x, zero=pi, rotation="clock") # zero and rotation is
####### changed and the data converted.
plot(w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.