esgplotbands: Plot time series percentiles and confidence intervals

View source: R/plots.R

esgplotbandsR Documentation

Plot time series percentiles and confidence intervals

Description

Creates a plot showing time series data with confidence intervals, percentiles, and mean values.

Usage

esgplotbands(x, ...)

Arguments

x

A time series object containing the data to plot

...

Additional arguments passed to the plotting function

Details

The function creates a plot with:

  • Mean values as the central line

  • 95th and 5th percentiles as outer bands

  • Upper and lower quartiles as inner bands

  • Confidence intervals based on t-tests

The plot uses a color gradient from light yellow to light green for the different bands.

Value

A plot object

Examples

# Create sample time series
x <- ts(matrix(rnorm(1000), ncol=10), start=0, deltat=1)

# Plot with default settings
esgplotbands(x)

# Plot with custom title
esgplotbands(x, main="Custom Title")


Techtonique/ESGtoolkit documentation built on June 11, 2025, 6:24 p.m.