plot.Surv {eha}R Documentation

Plots of survivor functions.

Description

Kaplan-Meier estimates. If only one curve, confidence limits according to Greenwood's formula are drawn.

Usage

plot.Surv(x, strata=NULL, fn = c("cum", "surv", "log", "loglog"),
limits=TRUE, conf=0.95, main=NULL, xlab=NULL, ylab=NULL,
xlim=NULL, ylim=NULL, lty.con=NULL, col.con = NULL, x.axis = TRUE, ...)

Arguments

x A Surv object.
strata Defines a partition of the data. One survivor function for each level of strata is drawn.
fn Which type of plot?
limits If TRUE, and if the number of curves is one, confidence limits are drawn.
conf The confidence level for the confidence limits.
main A heading for the plot.
xlab Label on the x axis.
ylab Label on the y-axis.
xlim Horizontal plot limits. If NULL, calculated by the function.
ylim Vertical plot limits. If NULL, set to c(0, 1)
lty.con Line type of confidence bands.
col.con Color of confidence bands.
x.axis Should abline(h=0) be drawn?
... Anything that plot likes...

Details

Left truncation is allowed. Note, though, that this fact may result in strange estimated curves due to lack of data in certain (low) ages.

Value

No value is returned.

Author(s)

Göran Broström

Examples

time0 <- numeric(50)
group <- c(rep(0, 25), rep(1, 25))
time1 <- rexp( 50, exp(group) )
event <- rep(1, 50)
plot.Surv(Surv(time0, time1, event), strata = group)

[Package eha version 1.2-4 Index]