Usage
ggs_caterpillar(D, family = NA, X = NA,
thick.ci = c(0.05, 0.95), thin.ci = c(0.025, 0.975),
line = NA, horizontal = TRUE, labels = NULL)
Arguments
D
Data frame whith the simulations or list of data
frame with simulations. If a list of data frames with
simulations is passed, the names of the models are the
names of the objects in the list.
X
data frame with two columns, Parameter and the
value for the x location. Parameter must be a character
vector with the same names that the parameters in the D
object.
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[
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
Numerical value indicating a concrete
position, usually used to mark where zero is. By default
do not plot any line.
horizontal
Logical. When TRUE (the default), the
plot has horizontal lines. When FALSE, the plot is
reversed to show vertical lines. Horizontal lines are
more appropriate for categorical caterpillar plots,
because the x-axis is the only dimension that matter
labels
Vector of strings that matches the number
of models in the list. It is only used in case of
multiple models and when the list of ggs objects given at
D
is not named. Otherwise, the names in the list
are used.