AM_plot_chaincor {AntMAN}R Documentation

Plot the Autocorrelation function

Description

Given an AM_mcmc_output object, this function produces the autocorrelation function bars describing the MCMC results. AM_plot_chaincor makes use of bayesplot’s plotting function mcmc_acf_bar (Gabry et al. 2019).

Usage

AM_plot_chaincor(x, tags = NULL, lags = NULL, title = "MCMC Results")

Arguments

x

An AM_mcmc_output object, produced by calling AM_mcmc_fit.

tags

A list of variables to consider. This function only produces meaningful plots for variables that have fixed dimension across the draws. If not specified, plots pertaining to M and K will be produced. This function is built upon bayesplot's mcmc_acf_bar.

lags

An integer specifying the number of lags to plot. If no value is specified, the default number of lags shown is half the total number of iterations.

title

Title for the plot.

Value

A ggplot object.


[Package AntMAN version 1.1.0 Index]