clock2cart {IDPmisc}R Documentation

Convert Clock Coordinates to Cartesian Coordinates

Description

Converts clock coordinates (rho, phi) to cartesian coordinates (x, y.

Usage

clock2cart(rho, phi, circle)

Arguments

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 phi.

Value

Data frame with

x, y Cartesian coordinates.

Author(s)

Rene Locher

See Also

cart2clock, rose-class

Examples

## an easy way to plot a circle
xy <- clock2cart(rho=rep(1,33),phi=seq(0,to=360,len=33),circle=360)
plot(xy)

[Package IDPmisc version 1.0.01 Index]