| plot.brma | R Documentation |
plot.brma visualizes posterior
(and prior) distribution a brma object.
## S3 method for class 'brma'
plot(
x,
parameter,
parameter_mods,
parameter_scale,
prior = FALSE,
standardized_coefficients = FALSE,
conditional = FALSE,
output_measure = NULL,
transform = NULL,
plot_type = "base",
dots_prior = NULL,
...
)
x |
a fitted |
parameter |
a parameter to be plotted. Defaults to |
parameter_mods |
character. Moderator term to plot. Use
|
parameter_scale |
character. Scale-regression term to plot. Use
|
prior |
whether prior distribution should be added to
figure. Defaults to |
standardized_coefficients |
whether to plot moderator and
scale-regression coefficients on the standardized predictor scale. Defaults
to |
conditional |
whether to plot the conditional posterior distribution
for RoBMA product-space objects. Defaults to |
output_measure |
effect-size measure for location/effect predictions.
Defaults to the fitted measure. Supported conversions are among |
transform |
optional display transformation. Currently |
plot_type |
whether to use a base plot |
dots_prior |
list of additional graphical arguments
to be passed to the plotting function of the prior
distribution. Supported arguments are |
... |
list of additional graphical arguments
to be passed to the plotting function. Supported arguments
are |
plot.brma returns either NULL if plot_type = "base"
or a ggplot2 object if plot_type = "ggplot".
RoBMA()
## Not run:
if (requireNamespace("metadat", quietly = TRUE)) {
data(dat.lehmann2018, package = "metadat")
fit <- bPET(yi = yi, vi = vi, data = dat.lehmann2018, measure = "SMD")
plot(fit, parameter = "mu")
plot(fit, parameter = "tau", prior = TRUE)
plot(fit, parameter = "PET")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.