AM_plot_chaincor: Plot the Autocorrelation function

Description Usage Arguments Value

View source: R/AM_plot.R

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 \insertCitebayesplotAntMAN.

Usage

1
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.


AntMAN documentation built on July 23, 2021, 5:08 p.m.