plot.survmean: Graphically Inspect Curves Used in Mean Survival Computation

View source: R/S3_definitions.R

plot.survmeanR Documentation

Graphically Inspect Curves Used in Mean Survival Computation

Description

Plots the observed (with extrapolation) and expected survival curves for all strata in an object created by survmean

Usage

## S3 method for class 'survmean'
plot(x, ...)

Arguments

x

a survmean object

...

arguments passed (ultimately) to matlines; you may, therefore, supply e.g. xlab through this, though arguments such as lty and col will not work

Details

For examples see survmean. This function is intended only for graphically inspecting that the observed survival curves with extrapolation and the expected survival curves have been sensibly computed in survmean.

If you want finer control over the plotted curves, extract the curves from the survmean output using

attr(x, "curves")

where x is a survmean object.

Value

Always returns 'NULL' invisibly. This function is called for its side effects.

Author(s)

Joonas Miettinen

See Also

Other survmean functions: Surv(), lines.survmean(), survmean()


WetRobot/popEpi documentation built on Aug. 29, 2023, 3:53 a.m.