Skip to contents

Compare CPUE indices

Usage

plot_compare(
  fits,
  labels = NULL,
  year = "year",
  probs = c(0.25, 0.75),
  show_probs = TRUE,
  rescale = "raw",
  rescale_series = NULL
)

Arguments

fits

a list of objects of class brmsfit in the order that you want to compare them.

labels

some optional labels for the fits that will be shown in the legend instead of the model formula.

year

the year or time label in the fitted model (e.g., year).

probs

the quantiles to plot. Defaults to 25% and 75% quantiles or 50% credible interval (CI).

show_probs

plot the quantiles as ribbons or not.

rescale

How to re-scale the series. Choose from "raw" to retain the raw series, "unstandardised" to re-scale to the geometric mean of the unstandardised series, or a number to re-scale by.

rescale_series

the index of the series to rescale to if one series is longer/shorter than the others.

Value

a ggplot object.

Author

Darcy Webber darcy@quantifish.co.nz