plot_surv_curve | R Documentation |
Plot individual survival curve (Kaplan Meier)
plot_surv_curve(
df,
descr = "",
out_dir = ".",
line_colors = NULL,
save.to.file = F
)
df |
A data frame with 3 columns: time, status (censoring), col (variable to stratify by) |
descr |
A string description/label for file names and plot title; could be strata name |
out_dir |
The output directory where the plot will be saved, default is current working directory. |
line_colors |
A named vector for colors - names=variable/strata and values=hex codes. |
save.to.file |
A logical indicating whether to save to out_dir (T) or print to panel (F) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.