powered by
Add a default or custom title to the figure legend.
add_legend_title(title = NULL)
a ggplot2 figure
a string to override the default legend title. Default is NULL
NULL
Visit the gallery for examples modifying the default figures
survfit2(Surv(time, status) ~ surg, data = df_colon) %>% ggsurvfit() + add_legend_title() + scale_ggsurvfit()
Run the code above in your browser using DataLab