Skip to contents

theme_survival() is the light theme of plot_survival() and plot_cif(): a minimal theme with the legend on top and no minor grid lines. theme_forest() is the theme of plot_forest(), which also drops the horizontal grid lines, the y axis line, and the legend, so the term labels stand on their own.

Usage

theme_survival()

theme_forest()

Value

A ggplot2 theme, to add to a plot with +.

Examples

fit <- kaplan_meier(Surv(time, status) ~ sex, data = lung)
plot_survival(fit) + theme_survival()


cox <- cox_ph(Surv(time, status) ~ age + sex, data = lung)
plot_forest(cox) + theme_forest()