Learn R Programming

VizOR (version 0.8-5)

panel.prevalence: Treatment Prevalence vs Duration graphic

Description

Provides a special graphic for treatment prevalence-vs-duration. Used in place of lattice function 'panel.bwplot', this function enables a special kind of graphic displaying prevalence of various kinds of treatment within a patient population, together with the distribution of treatment durations.

Usage

panel.prevalence(x, y, prevalence, box.width = NA, pch = "+", pch.out = 20, alpha = 0.5, ..., stats = boxplot.stats, coef = 1.5, do.out = TRUE)

Arguments

x
Vector of (numeric or difftime) treatment durations
y
The treatment factor
prevalence
Treatment prevalence, typically an xtabs object calculated by, e.g., xtabs(~trt, data)
box.width
If this is specified, a more-or-less standard boxplot will be produced
pch
Plotting symbol used for boxplot median
pch.out
Plotting symbol for outliers (default is dot)
alpha
Boxplot transparency
stats
Function to generate boxplot statistics (default is boxplot.stats)
coef
How far boxplot whiskers should extend outside the box
do.out
Logical; should outliers be plotted?
...
Currently used to pass key.colors parameter

See Also

panel.bwplot