View source: R/f_flexsurv_plots.R
f_flexsurv_plots | R Documentation |
This function plots Kaplan-Meier and parametric survival curves.
fit |
A list of fitted survival models. Default is ls_obj. |
show_dists |
A character vector specifying which distributions to show. Default is "all". |
time_plot |
A numeric vector specifying the time points for the plot. Default is 0:6000. |
conf_int_km |
A logical indicating whether to include confidence intervals for the Kaplan-Meier curve. Default is FALSE. |
scale_time |
A numeric value to scale time from days to years. Default is 365.25. |
A ggplot2 object.
F. Thielen
f_flexsurv_plots()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.