Selects a plot based on the node's kind:
ppc:bayesplot::ppc_dens_overlay()on the stored plot-ready data.loo_pit: a base-graphics PIT ECDF plot against the Uniform CDF.sbc: a base-graphics rank histogram.cmdstanr_fit/brms_fit:bayesplot::mcmc_trace()over the draws.
Value
For ppc and fit kinds, the bayesplot ggplot object. For
loo_pit and sbc, NULL invisibly (the plot is drawn as a side
effect).
Details
The bayesplot-backed kinds need the bayesplot package (a soft
dependency); the function aborts with an informative message when it is
missing or the node kind has no plot.
For posterior-predictive checking, this graphical view is the primary
diagnostic: the p-values in a ppc node's summary are conservative
checks that flag substantial misfit. An unremarkable p-value is weak
evidence of adequacy. Inspect the overlay alongside the p-values.