figure_pro | R Documentation |
Generates and returns a ggplot object for Kaplan-Meier (KM) survival curves or time-dependent ROC curves.
figure_pro(type, data, file = NULL, time_unit = "days")
type |
"km" or "tdroc" |
data |
list with:
|
file |
optional path to save |
time_unit |
"days" (default), "months", or "years" for df$time |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.