View source: R/kmplotting_helpers.R
| plot_km_confint_polygon | R Documentation |
Plots a shaded polygon representing the confidence interval for a Kaplan-Meier survival curve.
plot_km_confint_polygon(x, surv, se, conf_level, col)
x |
Numeric vector of time points. |
surv |
Numeric vector of survival probabilities. |
se |
Numeric vector of standard errors of survival probabilities. |
conf_level |
Numeric; confidence level for interval (default 0.95). |
col |
Color for the polygon. |
Invisibly returns NULL. Used for plotting side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.