plotrix (version 3.7)

radial.plot.labels: Display labels on a circular grid

Description

radial.plot.labels displays a labels on a circular plot produced by one of the radial.plot family of functions.

Usage

radial.plot.labels(lengths,radial.pos=NULL,units="radians",radial.lim=NULL,
  start=0,clockwise=FALSE,labels,adj=NULL,pos=NULL,...)

Arguments

lengths

numeric data vector. Magnitudes will be represented as the radial positions of symbols, line ends or polygon vertices.

radial.pos

numeric vector of radial positions. These will be converted to radians if the units argument is not "radians".

units

The units of radial.pos may be degrees or 24 hour clock positions. If units is "polar" or "clock24" respectively, the values of radial.pos will be converted into radians.

radial.lim

Optional radial limits for the circular plot. These must be the same as the radial limits of the original plot.

start

The zero position on the plot in the units of radial.pos.

clockwise

Whether to increase angles clockwise rather than the default counterclockwise.

labels

text labels to display on the plot.

adj

Text justification as in the text function.

pos

Text position as in the text function.

...

additional arguments passed to text.

Value

nil

Details

Don't confuse this function with the radial.labels argument in the radial.plot function. This labels the values rather than the grid.

See Also

text

Examples

Run this code
# NOT RUN {
 testlen<-c(rnorm(10)*2+5)
 # do the labels in clock24 units
 testpos<-c(6.74,8.3,10.55,12.33,13.75,15.9,17.15,19.36,21.02,23.27)
 oldpar<-clock24.plot(testlen,testpos,main="Test radial.plot.labels",
  rp.type="s",point.symbols=3,point.col="blue")
 radial.plot.labels(testlen,testpos,units="clock24",labels=LETTERS[1:10],
  pos=3,col="blue")
 testangle<-c(25,42,67,94,128,173,191,234,268,307)
 # now a polar plot
 polar.plot(testlen,testangle,main="Test radial.plot.labels",rp.type="p",
  poly.col="green")
 radial.plot.labels(testlen,testangle,units="polar",labels=LETTERS[1:10])
 # reset par
 par(oldpar)
# }

Run the code above in your browser using DataCamp Workspace