theme_survrec: Plot theme used by the survrec graphics

View source: R/theme-survrec.R

theme_survrecR Documentation

Plot theme used by the survrec graphics

Description

A clean ggplot2 theme shared by all the plotting functions of the package: light horizontal grid, no panel border, muted axis text and room for the legend at the bottom. Exported so that the figures of a report can be restyled consistently. It matches the theme of the companion package gcmrec.

Usage

theme_survrec(base_size = 12)

Arguments

base_size

Base font size in points.

Value

A ggplot2 theme object, to be added to any plot.

Examples

data(MMC)
fit <- survfitr(Survr(id, time, event) ~ group,
  data = MMC,
  type = "wang-chang"
)
autoplot(fit) + theme_survrec(base_size = 14)

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