Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ggs_autocorrelation

Plot an autocorrelation matrix


Description

Plot an autocorrelation matrix.

Usage

ggs_autocorrelation(D, family = NA, nLags = 50, greek = FALSE)

Arguments

D

Data frame whith the simulations.

family

Name of the family of parameters to plot, as given by a character vector or a regular expression. A family of parameters is considered to be any group of parameters with the same name but different numerical value between square brackets (as beta[1], beta[2], etc).

nLags

Integer indicating the number of lags of the autocorrelation plot.

greek

Logical value indicating whether parameter labels have to be parsed to get Greek letters. Defaults to false.

Value

A ggplot object.

Examples

data(linear)
ggs_autocorrelation(ggs(s))

ggmcmc

Tools for Analyzing MCMC Simulations from Bayesian Inference

v1.5.1.1
GPL-2
Authors
Xavier Fernández i Marín [aut, cre] (<https://orcid.org/0000-0002-9522-8870>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.