Creates trace plots for MCMC chain convergence assessment.
Usage
plot_mcmc_trace(
fit,
parameters = NULL,
chains = NULL,
title = "MCMC Trace Plots",
alpha = 0.8
)Arguments
- fit
A brmsfit object from brms package
- parameters
Character vector of parameter names to plot. If NULL, selects parameters starting with "b_", or the first 5 parameters if no "b_" parameters exist.
- chains
Integer vector of chain numbers to plot. If NULL, plots all chains.
- title
Plot title
- alpha
Numeric. Transparency for chain lines
