Learn R Programming

easysurv (version 2.0.1)

theme_risktable_easysurv: Plot Theme for easysurv Risk Tables

Description

To be used with ggsurvfit::add_risktable().

Usage

theme_risktable_easysurv()

Arguments

Value

A list containing a ggplot2 theme object.

Examples

Run this code
library(ggsurvfit)
fit <- survfit2(Surv(time, status) ~ surg, data = df_colon)
fit <- fit |> ggsurvfit() +
  theme_easysurv() +
  add_risktable(theme = theme_risktable_easysurv())
fit

Run the code above in your browser using DataLab