surv_plot_km | R Documentation |
Calls survminer::ggsurvplot to create KM curves
surv_plot_km(data, var, age_death, event, ...)
data |
the dataframe that will be plotted |
var |
a string specifying the variable name to stratify the plots |
age_death |
a string specifying the age of death variable |
event |
a string specifying the status of the event 0=alive, 1=dead |
... |
other named arguments to pass to ggsurvplot function |
a km ggplot
William Mueller, Eric Shiroma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.