theme_ggsurvfit: Survfit Plot Themes

theme_ggsurvfitR Documentation

Survfit Plot Themes

Description

Returns ggplot list of calls defining a theme.

  • theme_ggsurvfit_default(): Builds on theme_bw() with increased text sizes.

  • theme_ggsurvfit_KMunicate(): Theme to create KMunicate-styled figures. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1136/bmjopen-2019-030215")}

Usage

theme_ggsurvfit_default()

theme_ggsurvfit_KMunicate()

Value

a ggplot2 theme

Examples

survfit2(Surv(time, status) ~ sex, data = df_lung) %>%
  ggsurvfit(theme = theme_ggsurvfit_default()) +
  scale_ggsurvfit()

ggsurvfit documentation built on Nov. 2, 2023, 5:33 p.m.