Quickly plot a marginal survival using ggplot2 with grouped data. Survival curves for each group are stratified by a stratification variable and plots are faceted by group.

# S3 method for grouped_marginal_survival
autoplot(object, xlab = "Time", strata_labels = c("Control", "Treated"), ...)

Arguments

object

An object of class grouped_marginal_survival.

xlab

Label for the x-axis.

strata_labels

Labels for each level of the stratification variable.

...

Currently unused.

Value

A ggplot2 object.