clock2cart: Convert Clock Coordinates to Cartesian Coordinates

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/clock2cart.R

Description

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

Usage

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

Details

Be aware that in clock coordinates and polar coordinate the angle phi is differently defined!

Value

Data frame with

x, y

Cartesian coordinates.

Author(s)

Rene Locher

See Also

cart2clock, rose-class

Examples

1
2
3
## 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)

Example output

Loading required package: grid
Loading required package: lattice

IDPmisc documentation built on Jan. 21, 2020, 5:06 p.m.