plot_q_mcmc: Plot MCMC catchabilities for iSCAM models

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

plot_q_mcmcR Documentation

Plot MCMC catchabilities for iSCAM models

Description

Plot catchability plots for MCMC output with credible intervals

Usage

plot_q_mcmc(
  models,
  gear = 1,
  append_base_txt = NULL,
  legend_title = tr("Models"),
  probs = c(0.025, 0.5, 0.975),
  base_color = "black",
  palette = iscam_palette,
  leg_loc = c(1, 1),
  text_title_size = 12,
  angle_x_labels = FALSE
)

Arguments

models

A list of iscam model objects (class mdl_lst_cls)

gear

The number of the gear to plot

append_base_txt

A vector of strings to append to the model names for display on the plot legend or title

legend_title

Title for legend

probs

A 3-element vector of probabilities that appear in the output data frames. This is provided in case the data frames have more than three different quantile levels

base_color

A color to prepend to the brewer colors which are set by palette. This is called base_color because it is likely to be a base model

palette

A palette value that is in RColorBrewer::brewer.pal.info

leg_loc

A two-element vector describing the X-Y values between 0 and 1 to anchor the legend to. eg. c(1, 1) is the top right corner and c(0, 0) is the bottom left corner

text_title_size

Size of text for the axis titles

angle_x_labels

If TRUE put 45 degree angle on x-axis tick labels

Details

This function can plot either multiple gears for a single model on one plot, or a single gear from multiple models on a single plot.

See Also

Other Time series plotting functions: plot_biomass_grid_mcmc(), plot_biomass_mcmc(), plot_biomass_mpd(), plot_biomass_proj_mcmc(), plot_catch_fit_mcmc(), plot_f_mcmc(), plot_index_mcmc(), plot_index_mpd(), plot_rdevs_mcmc(), plot_recr_grid_mcmc(), plot_recr_mcmc(), plot_recr_mpd(), plot_ts_mcmc(), plot_vuln_mcmc()


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