Description Usage Arguments Value Author(s) Examples
View source: R/ggflexsurvplot.R
Create ggplot2-based graphs for flexible survival models.
1 2 3 4 5 6 7 8 9 10 11 12 |
fit |
an object of class |
data |
the data used to fit survival curves. |
fun |
the type of survival curves. Allowed values include "survival" (default) and "cumhaz" (for cumulative hazard). |
summary.flexsurv |
(optional) the summary of the |
size |
line size for the flexible survival estimates. |
conf.int, conf.int.flex |
logical. If TRUE, add confidence bands for flexible survival estimates. |
conf.int.km |
same as |
legend.labs |
character vector specifying legend labels. Used to replace the names of the strata from the fit. Should be given in the same order as those strata. |
... |
additional arguments passed to the function |
a ggsurvplot
Alboukadel Kassambara, alboukadel.kassambara@gmail.com
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.