add_confidence_bands: Add Confidence Bands to Plot

View source: R/16.1-plot-core.R

add_confidence_bandsR Documentation

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)

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

Value

NULL (modifies current plot)


fb4package documentation built on May 8, 2026, 1:07 a.m.