This function is built with `ggplot2`. Parameters such as `binwidth`, `adjust`, `density.colors`, `density.lwd`, `density.lty`, and `density.alpha` correspond directly to arguments in the `ggplot2` geoms.
# S3 method for bmeta
plot(
x,
n.samples = NULL,
x.lim = NULL,
y.lim = NULL,
x.lab = expression(mu[theta]),
y.lab = "Posterior Distribution",
title.plot = "Normal RE",
show.legend = TRUE,
legend.labels = c("Posterior of the difference in means",
"Posterior Predictive Distribution"),
legend.title = "Distribution",
show.histogram = TRUE,
show.rug = TRUE,
show.vlines = TRUE,
binwidth = 0.08,
adjust = 1,
density.colors = c("blue", "red"),
density.lwd = c(1, 1),
density.lty = c("solid", "dashed"),
density.alpha = c(0.2, 0.2),
hist.color = "black",
hist.fill = "grey95",
rug.color = "green",
rug.alpha = 0.5,
...
)The object generated by the bmeta function.
The number of posterior samples to plot.
Numeric vector of length 2 specifying the x-axis limits.
Numeric vector of length 2 specifying the y-axis limits.
Text with the label of the x-axis.
Text with the label of the y-axis.
Text for setting a title in the plot.
A logical value indicating whether to show the legend.
A character vector of length 2 to customize the legend labels.
A character value to customize the legend title.
A logical value indicating whether to show the histogram.
A logical value indicating whether to show the rug plot.
A logical value indicating whether to show the vertical lines for the means.
A numeric value specifying the bin width for the histogram.
A numeric value to adjust the bandwidth of the density curves. Defaults to 1.
A character vector of length 2 for the density curve colors.
A numeric vector of length 2 for the density curve line widths.
A numeric vector of length 2 for the density curve line types.
A numeric vector of length 2 for the density curve transparencies.
A character value for the histogram border color.
A character value for the histogram fill color.
A character value for the rug plot color.
A numeric value between 0 and 1 for the rug plot transparency.
...