clock24.plot {plotrix}R Documentation

clock24.plot

Description

clock24.plot displays a plot of radial lines or a polygon centered at the midpoint of the plot frame on a 24 hour 'clockface'. In contrast to radial.plot, the positions are interpreted as beginning at vertical (000) and moving clockwise.

Usage

 clock24.plot(lengths,clock.pos,rp.type="r",...)

Arguments

lengths numeric data vector. Magnitudes will be represented as line lengths.
clock.pos numeric vector of positions on the 'clockface'. These must be in decimal hours and will be rescaled to radians.
rp.type Whether to plot radial lines or a polygon.
... additional arguments are passed to radial.plot and then to plot.

Value

nil

Author(s)

Jim Lemon

See Also

polar.plot,radial.plot

Examples

 testlen<-rnorm(24)*2+5
 testpos<-0:23+rnorm(24)/4
 clock24.plot(testlen,testpos,main="Test Clock24",show.grid=FALSE,
  line.col="green",lwd=3)
 par(ask=TRUE)
 # now do a 'daylight' plot
 clock24.plot(testlen[5:19],testpos[5:19],main="Test Clock24 daytime",
  line.col="blue",lwd=3)
 par(ask=FALSE)

[Package plotrix version 1.3-5 Index]