add_legend_title {ggsurvfit} | R Documentation |
Add a default or custom title to the figure legend.
add_legend_title(title = NULL)
title |
a string to override the default legend title. Default is |
a ggplot2 figure
Visit the gallery for examples modifying the default figures
survfit2(Surv(time, status) ~ surg, data = df_colon) %>%
ggsurvfit() +
add_legend_title() +
scale_ggsurvfit()