Learn R Programming

plotrix (version 1.41)

polar.plot: Plot values on a circular grid of 0 to 360 degrees.

Description

polar.plot displays a plot of radial lines, symbols or a polygon centered at the midpoint of the plot frame on a 0:360 circle. Positions are interpreted as beginning at the right and moving counterclockwise.

Usage

polar.plot(lengths,polar.pos,labels,label.pos,rp.type="r",...)

Arguments

lengths
numeric data vector. Magnitudes will be represented as line lengths.
polar.pos
numeric vector of positions on a 0:360 degree circle. These will be rescaled to radians.
labels
text labels to place on the periphery of the circle. This defaults to labels every 20 degrees. For no labels, pass an empty string.
label.pos
positions of the labels in degrees
rp.type
Whether to plot radial lines or a polygon.
...
additional arguments passed to radial.plot and then to plot.

Value

  • nil

See Also

radial.plot

Examples

Run this code
testlen<-c(rnorm(36)*2+5)
 testpos<-seq(0,350,by=10)
 polar.plot(testlen,testpos,main="Test Polar Plot",lwd=3,line.col=4)

Run the code above in your browser using DataLab