panel.prevalence: Treatment Prevalence vs Duration graphic

Description Usage Arguments Author(s) See Also

View source: R/panel.prevalence.R

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

1
2
3
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

Author(s)

David C. Norris

See Also

panel.bwplot


VizOR documentation built on May 30, 2017, 5:29 a.m.