autoplot.mcf: Plot a mean cumulative function

View source: R/mcf.R

autoplot.mcfR Documentation

Plot a mean cumulative function

Description

Draws the mean cumulative function estimated by mcf() as a step function, one colour per group.

Usage

## S3 method for class 'mcf'
autoplot(object, ...)

Arguments

object

an object of class mcf.

...

ignored; kept for compatibility with the generic.

Value

A ggplot object.

See Also

mcf(), theme_survrec()

Examples

data(colon)
autoplot(mcf(Survr(hc, time, event) ~ as.factor(dukes), data = colon))

survrec documentation built on Sept. 22, 2026, 9:07 a.m.