plot.baggr_compare {baggr}R Documentation

Plot method for baggr_compare models

Description

Allows plots that compare multiple baggr models that were passed for comparison purposes to baggr compare or run automatically by baggr_compare

Usage

## S3 method for class 'baggr_compare'
plot(
  x,
  style = "areas",
  grid_models = FALSE,
  grid_parameters = TRUE,
  interval = 0.95,
  hyper = TRUE,
  transform = NULL,
  order = F,
  vline = FALSE,
  ...
)

Arguments

x

baggr_compare model to plot

style

What kind of plot to display (if grid_models = TRUE), passed to the style argument in baggr_plot.

grid_models

If FALSE (default), generate a single comparison plot; if TRUE, display each model (using individual baggr_plot's) side-by-side.

grid_parameters

if TRUE, uses ggplot-style facetting when plotting models with many parameters (especially "quantiles", "sslab"); if FALSE, returns separate plot for each parameter

interval

probability level used for display of posterior interval

hyper

Whether to plot pooled treatment effect in addition to group treatment effects

transform

a function (e.g. exp(), log()) to apply to the values of group (and hyper, if hyper=TRUE) effects before plotting; when working with effects that are on log scale, exponent transform is used automatically, you can plot on log scale by setting transform = identity

order

Whether to sort by median treatment effect by group. If yes, medians from the model with largest range of estimates are used for sorting. If not, groups are shown alphabetically.

vline

logical; show vertical line through 0 in the plot?

...

ignored for now, may be used in the future


[Package baggr version 0.6.4 Index]