Description Usage Arguments Examples
View source: R/faceted_survival.R
This function allows you facet a fitted survfit object. Generally, it is an modified version of ggsurvplot_facet which uses geom_smooth for more comparison of the survival curve.
1 | facet_survival_comp(fit, data, facet_vector, ncol = 2, title = NULL)
|
fit |
the fitted object |
data |
the dataframe (or tibble) used to fit the survfit object |
facet_vector |
the variable(s) to facet by, could be 1+ , must be a string |
title |
obtional title for the plot |
number |
of columns, default = 2 |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.