View source: R/autoCorrelationPlot.R
| autoCorrelationPlot | R Documentation |
Makes an auto-correlation plot as per the coda package, but in the ggplot2 environment rather than base R.
autoCorrelationPlot(
x,
plot_title = "autocorrelation",
lag_max = NULL,
facet = FALSE,
threshold_line_colour = "grey"
)
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. |
A plot of the auto-correlation for each parameter in x over a number of lag values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.