plotpcs: Plot in polar coordinate system

Description Usage Arguments Examples

View source: R/plot2d.R

Description

Plot in polar coordinate system

Usage

1
2
plotpcs(theta, a = 1, ab = 1, orig = c(0, 0), fun = graphics::plot,
  ...)

Arguments

theta

Angle in polar coordinate system

a

Radius of start and end points of the arrow.

ab

Semi-major over semi-minor. ab=1 for a Ring.

orig

Origin

fun

Plot function. default = plot

...

More options in plot function

Examples

1
2
3
4
5
6
7
n=50
par(mfrow=c(2,1))
plotpcs(theta = 1:n * 15, a=1:n/10, ab=1, type='l', asp=1)
plotpcs(theta = 1:n * 10, a=1:n/10, ab=1, type='l', asp=1)
xy = PCS2CCS(theta = 1:n * 10, a=1:n/10, ab=1)
xy[,1]=xy[,1]+1
points(xy, pch=19, col=terrain.colors(nrow(xy)))

happynotes/RoundAndRound documentation built on Jan. 31, 2020, 12:05 p.m.