plot_traces_mcmc: Plot MCMC traces for iSCAM models

View source: R/plot-traces-mcmc.R

plot_traces_mcmcR Documentation

Plot MCMC traces for iSCAM models

Description

Trace plots for parameters in an MCMC run

Usage

plot_traces_mcmc(
  model,
  plot_sel = FALSE,
  param_rm = c("rho", "vartheta"),
  list_param_names = FALSE,
  text_title_size = 12,
  ...
)

Arguments

model

An iscam model object (class mdl_cls)

plot_sel

Logical. If TRUE, plot only the selectivity parameters. If FALSE, plot only non-selectivity parameters. If NULL, plot all parameters except those in param_rm

param_rm

A vector of parameter names to remove. If any are not found in the output, a warning will be issued. If NULL, nothing is removed

list_param_names

Logical. If TRUE, list the parameter names that will be plot by this function, but do not actually plot it. This is to help you to use the param_rm argument, so you know what the names to be removed can be

text_title_size

Add the model description as a title with this font size. The text comes from the model_desc attribute of model. If this is NULL, don't show a title

...

Additional arguments passed to cowplot::plot_grid()

Value

A ggplot2::ggplot() object

See Also

Other MCMC diagnostics plots: plot_autocorr_mcmc(), plot_pairs_mcmc(), plot_priors_posts_mcmc()


pbs-assess/gfiscamutils documentation built on Oct. 24, 2024, 1:37 p.m.