View source: R/16.1-plot-core.R
| add_confidence_bands | R Documentation |
Adds shaded confidence intervals to existing plots.
add_confidence_bands(x, lower, upper, color = "red", alpha = 0.2)
x |
X-coordinates |
lower |
Lower confidence bound |
upper |
Upper confidence bound |
color |
Color for shading, default "red" |
alpha |
Transparency level (0-1), default 0.2 |
NULL (modifies current plot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.