View source: R/add_risktable_strata_symbol.R
add_risktable_strata_symbol | R Documentation |
Replace the stratum level names with a color symbol in the risk tables. Use this function when stratum level names are long.
add_risktable_strata_symbol(
symbol = NULL,
size = 15,
face = "bold",
vjust = 0.3,
...
)
symbol |
UTF-8 code of shape to
replace strata level with. Default is a rectangle ( |
size, face, vjust, ... |
arguments passed to a function similar to
|
a ggplot2 figure
Visit the gallery for examples modifying the default figures
p <-
survfit2(Surv(time, status) ~ sex, data = df_lung) %>%
ggsurvfit(linewidth = 1) +
add_confidence_interval() +
add_risktable(risktable_group = "risktable_stats") +
scale_ggsurvfit()
p + add_risktable_strata_symbol()
p + add_risktable_strata_symbol(symbol = "\U25CF", size = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.