Create a boxplot of individual parameter point estimates from an HBAM model over self-placements
plot_over_self(
object,
par = "chi",
estimate = "median",
names = NULL,
parlabel = NULL,
fill = "#2166AC",
color = "#053061",
width = 0.7,
alpha = 0.5,
outlier.size = 0.3,
median_color = "black",
median_lwd = 0.7
)
A ggplot
object.
An object of class stanfit
produced by hbam()
, a list produced by fbam()
, or a list
of such objects, which will produce a faceted plot.
Character: Name of the parameter to be plotted. One of the following: "alpha"
, "beta"
, "abs_beta"
, "lambda"
, or "chi"
. Defaults to "chi"
. Further individual-level parameters like "eta"
can be specified if these have been passed to hbam()
via the argument extra_pars
when fitting the model. (Note that homoskedastic models have no "eta"
parameters and "NF"-type models have no "lambda"
or "kappa"
parameters.)
Character: Specifying which type of posterior point estimate to use. One of "median"
and "mean"
. Defaults to "median"
. This only applies for stanfit
objects.
An optional character vector of model names of same length as the supplied list of models.
An optional character containing an alternative label for the parameter (will be parsed if passed as an expression).
Fill color of boxes. Passed on to ggplot2::geom_boxplot()
.
Color of outer lines. Passed on to ggplot2::geom_boxplot()
.
Width of boxes. Passed on to ggplot2::geom_boxplot()
.
Number in [0,1]: Inverse level of transparency for fill color.
Size of dots representing outliers. Passed on to ggplot2::geom_boxplot()
.
Color of solid line representing the median.
Thickness of solid line representing the median.