Produce histogram plots (via ggplot2) for a single metric such as
Effective Sample Size (ESS), Computational Efficiency (CE = ESS/s),
Algorithmic Efficiency (AE = ESS per draw), or the Gelman-Rubin statistic
Rhat (often shifted as Rhat - 1 for visual clarity).
Arguments
- samples
A
coda::mcmc.listor compatible object.- runtime_s
Numeric runtime in seconds (used to compute CE metrics).
- rhat_thresh
Numeric threshold used to flag Rhat deviations.
- bins
Integer number of histogram bins (default typically 30).
- log_x
Logical; if
TRUE, x-axis is log-transformed.