Learn R Programming

ggmcmc (version 1.5.1.1)

ggs_crosscorrelation: Plot the Cross-correlation between-chains

Description

Plot the Cross-correlation between-chains.

Usage

ggs_crosscorrelation(D, family = NA, absolute_scale = TRUE, 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).

absolute_scale

Logical. When TRUE (the default), the scale of the colour diverges between perfect inverse correlation (-1) to perfect correlation (1), whereas when FALSE, the scale is relative to the minimum and maximum cross-correlations observed.

greek

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

Value

a ggplot object.

References

Fern<U+00E1>ndez-i-Mar<U+00ED>n, Xavier (2016) ggmcmc: Analysis of MCMC Samples and Bayesian Inference. Journal of Statistical Software, 70(9), 1-20. doi:10.18637/jss.v070.i09

Examples

Run this code
# NOT RUN {
data(linear)
ggs_crosscorrelation(ggs(s))
# }

Run the code above in your browser using DataLab