add_confidence_bands: Add Confidence Bands to Plot
Description
Adds shaded confidence intervals to existing plots.
Usage
add_confidence_bands(x, lower, upper, color = "red", alpha = 0.2)
Value
NULL (modifies current plot)
Arguments
- 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