autoplot.survdiffr: Plot the bootstrap distributions of survival quantiles

View source: R/survdiffr-methods.R

autoplot.survdiffrR Documentation

Plot the bootstrap distributions of survival quantiles

Description

Draws the density of the bootstrap replicates of each group, with a vertical line at the observed quantile. Infinite replicates (survival estimate never below the requested level) are excluded from the densities and reported in the caption.

Usage

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

Arguments

object

a grouped result of survdiffr().

...

ignored; kept for compatibility with the generic.

Value

A ggplot object.

See Also

survdiffr(), summary.survdiffr(), theme_survrec()

Examples

data(colon)
fit <- survdiffr(Survr(hc, time, event) ~ as.factor(dukes),
  data = colon, q = 0.5, seed = 1
)
autoplot(fit)

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