powered by
Displays a graphic key to the occasions corresponding to petals in a petal plot.
occasionKey(capthist, noccasions, rad = 3, x, y, px = 0.9, py = 0.9, title = 'Occasion', ...)
The key will be added to an existing plot. No value is returned.
single-session capthist object
number of petals (if capthist not provided)
capthist
distance of petal centre from key centre
numeric x coordinate for centre of key
numeric y coordinate for centre of key
x position as fraction of user coordinates
y position as fraction of user coordinates
character
other arguments passed to text
text
Either capthist or noccasions is required. It is assumed that a plot exists.
noccasions
Graphic arguments in ... are applied to both the title and the occasion numbers.
plot.capthist
plot(captdata, border = 50) occasionKey(captdata, rad = 8, cex = 0.8)
Run the code above in your browser using DataLab