Learn R Programming

ggmcmc (version 0.2)

ggs_caterpillar: Caterpillar plot with thick and thin CI

Description

Caterpillar plots are plotted combining all chains for each parameter.

Usage

ggs_caterpillar(D, parameter.family,
    thick.ci = c(0.05, 0.95), thin.ci = c(0.025, 0.975),
    line = NA, horizontal = TRUE)

Arguments

D
data frame whith the simulations
parameter.family
Name of the family of parameters to plot. 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). Not implemented.
thick.ci
vector of length 2 with the quantiles of the thick band for the credible interval
thin.ci
vector of length 2 with the quantiles of the thin band for the credible interval
line
plot a line indicating a concrete position, usually used to mark where zero is. By default do not plot any line.
horizontal
logical value for the plot being horizontal, which is the default

Value

  • a ggplot object

Examples

Run this code
data(samples)
ggs_caterpillar(ggs(S, parallel=FALSE))

Run the code above in your browser using DataLab