plot_dens: Plot posterior densities for MCMC samples

View source: R/plot.R

plot_densR Documentation

Plot posterior densities for MCMC samples

Description

Draw kernel density plots for each parameter across chains.

Usage

plot_dens(x, mono = FALSE)

Arguments

x

A 3D array of posterior samples with dimensions '(iterations, chains, variables)'. A 2D matrix '(iterations, chains)' is also allowed and is treated as a single variable.

mono

Logical. If 'TRUE', plot in monochrome. If 'FALSE', use blue shades.

Value

No return value. This function is called for its side effect of plotting.


BayesRTMB documentation built on Nov. 24, 2026, 9:06 a.m.