add_legend_title {ggsurvfit} | R Documentation |
Add Legend Title
Description
Add a default or custom title to the figure legend.
Usage
add_legend_title(title = NULL)
Arguments
title |
a string to override the default legend title. Default is |
Value
a ggplot2 figure
See Also
Visit the gallery for examples modifying the default figures
Examples
survfit2(Surv(time, status) ~ surg, data = df_colon) %>%
ggsurvfit() +
add_legend_title() +
scale_ggsurvfit()
[Package ggsurvfit version 1.1.0 Index]