Skip to contents

In this plot the unstandardised indices is the geometric mean of the data.

Usage

plot_index(
  fit,
  year = "Year",
  fill = "purple",
  probs = c(0.25, 0.75),
  rescale = 1,
  show_unstandardised = TRUE
)

Arguments

fit

An object of class brmsfit.

year

the year or time label.

fill

the fill colour for the percentiles.

probs

The percentiles to be computed by the quantile function.

rescale

the index of the series to rescale to. If set to NULL then no rescaling is done.

show_unstandardised

show the unstandardised series or not.

Value

a ggplot object.

Author

Darcy Webber darcy@quantifish.co.nz