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

esgplotbands(x, ...)

Arguments

x

A time series object containing the data to plot

...

Additional arguments passed to the plotting function

Value

A plot object

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.

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")