plot_autocor: Create an autocorrelation plot for a particular parameter

View source: R/plot-autocor.R

plot_autocorR Documentation

Create an autocorrelation plot for a particular parameter

Description

Create an autocorrelation plot for a particular parameter

Usage

plot_autocor(
  model,
  post_regex,
  lag_max = 20,
  y_lim = c(-1, 1),
  bar_width = 0.5,
  fill = main_fill,
  alpha = 0.3,
  ...
)

Arguments

model

A model list, created by create_rds_file()

post_regex

A regular expression that matches one parameter name and nothing else

lag_max

See coda::autocorr.plot()

y_lim

A vector of start and end limits for the y-axis

bar_width

The width of the bars

fill

The fill color for the bars

alpha

The transparency for the bar fill

...

Absorbs arguments intended for other functions

Value

A ggplot2::ggplot() object


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.