R/marginal_survival.R
autoplot.grouped_marginal_survival.RdQuickly 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"), ...)
| object | An object of class |
|---|---|
| xlab | Label for the x-axis. |
| strata_labels | Labels for each level of the stratification variable. |
| ... | Currently unused. |
A ggplot2 object.