View source: R/theme-survrec.R
| theme_survrec | R Documentation |
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.
theme_survrec(base_size = 12)
base_size |
Base font size in points. |
A ggplot2 theme object, to be added to any plot.
data(MMC)
fit <- survfitr(Survr(id, time, event) ~ group,
data = MMC,
type = "wang-chang"
)
autoplot(fit) + theme_survrec(base_size = 14)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.