Learn R Programming

qbrms (version 1.0.1)

plot.qbrms_conditional_effects: Plot conditional effects for qbrms models

Description

Plot method for objects returned by conditional_effects and related helpers. For a single effect, this produces either a spaghetti plot of draws or a ribbon / slice plot of summary statistics. For multiple effects it can combine the plots using patchwork if available.

Usage

# S3 method for qbrms_conditional_effects
plot(x, ...)

Value

For a single effect, a ggplot2 object. For multiple effects, either

  • a patchwork object combining the individual plots (if the patchwork package is installed), or

  • a named list of ggplot2 objects otherwise.

Arguments

x

An object of class "qbrms_conditional_effects", typically the result of conditional_effects or conditional_effects_slices.

...

Currently ignored. Included for future extensions and method compatibility.