Learn R Programming

IDPmisc (version 0.9.3)

clock2cart: 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, yCartesian coordinates.

See Also

cart2clock, rose-class

Examples

Run this code
xy <- clock2cart(5,80,360)
xy
cart2clock(xy[1],xy[2],360)

cart2clock(0,1,360)
cart2clock(1,1,360)

Run the code above in your browser using DataLab