Learn R Programming

plotrix (version 1.2-2)

clock24.plot: 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 (2400) 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

authors

Jim Lemon

See Also

polar.plot,radial.plot

Examples

Run this code
testlen<-c(rnorm(24)*2+5)
 testpos<-0:23+rnorm(24)/4
 clock24.plot(testlen,testpos,main="Test Clock24")
 par(ask=TRUE)
 # now do a 'daylight' plot
 clock24.plot(testlen[5:19],testpos[5:19],main="Test Clock24 daytime")
 par(ask=FALSE)

Run the code above in your browser using DataLab