autoCorrelationPlot: Auto-correlation plot

View source: R/autoCorrelationPlot.R

autoCorrelationPlotR Documentation

Auto-correlation plot

Description

Makes an auto-correlation plot as per the coda package, but in the ggplot2 environment rather than base R.

Usage

autoCorrelationPlot(
  x,
  plot_title = "autocorrelation",
  lag_max = NULL,
  facet = FALSE,
  threshold_line_colour = "grey"
)

Arguments

x

An mcmc chain.

plot_title

The plot title.

lag_max

The maximum lag for which to calculate auto-correlation. Defaults to 50.

facet

A logical instructing the plotting of the autocorrelaiton plots of the parameters as facetted upon parameter or else combined in one plot and separated by colour.

Value

A plot of the auto-correlation for each parameter in x over a number of lag values.


stcolema/mdiHelpR documentation built on July 28, 2024, 5:41 a.m.