Learn R Programming

VizOR (version 0.8-5)

prepanel.prevalence: Adapts y-axis limits to prevalence range and any nonzero box width

Description

When generating a ‘Prevalence Plot’ via bwplot(panel=panel.prevalence), specifying prepanel=prepanel.prevalence spares one from calculating the y-axis bounds.

Usage

prepanel.prevalence(x, y, ...)

Arguments

x
Vector of (numeric or difftime) treatment durations
y
The treatment factor
...
Used to pass prevalence and box.width parameters

See Also

panel.prevalence