clock2cart | R Documentation |
Converts clock coordinates (rho
, phi
) to cartesian
coordinates (x
, y
).
clock2cart(rho, phi, circle)
rho |
Distance of point from center of coordinate system. |
phi |
Angle between North (12 o' clock), center and the point, measured clockwise. |
circle |
Defines the full circle in the units of |
Be aware that in clock coordinates and polar coordinate the angle phi is differently defined!
Data frame with
x , y |
Cartesian coordinates. |
Rene Locher
cart2clock
, rose-class
## an easy way to plot a circle
xy <- clock2cart(rho=rep(1,33),phi=seq(0,to=360,length.out=33),circle=360)
plot(xy)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.