View source: R/df_counting_helpers.R
| plot_km | R Documentation |
Plots Kaplan-Meier survival curves for groups in the data.
plot_km(df, tte.name, event.name, treat.name, weights = NULL, ...)
df |
Data frame containing survival data. |
tte.name |
Name of time-to-event column. |
event.name |
Name of event indicator column. |
treat.name |
Name of treatment/group column. |
weights |
Optional; name of weights column. |
... |
Additional arguments passed to plot(). |
Kaplan-Meier fit object (invisible).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.