Skip to contents

Wraps brms::mcmc_plot() and brms::pp_check() with named plot types.

Usage

# S3 method for class 'hbmfit'
plot(
  x,
  type = c("trace", "density", "acf", "nuts_energy", "rhat", "neff", "pp_check"),
  ...
)

Arguments

x

An hbmfit object.

type

Plot type, one of: "trace" (trace plots), "density" (posterior densities), "acf" (autocorrelation), "nuts_energy" (NUTS energy), "rhat" (R-hat distribution), "neff" (effective sample size), "pp_check" (posterior predictive check).

...

Additional arguments passed to the underlying brms plotting function.

Value

A ggplot or bayesplot object.