compareResults.Fisheries.CatchAbundance: Function to compare estimated fishery catch abundance by year...

View source: R/compareResults.Fisheries.CatchAbundance.R

compareResults.Fisheries.CatchAbundanceR Documentation

Function to compare estimated fishery catch abundance by year among several models

Description

This function compares estimated fishery catch abundance by year among several models.

Usage

compareResults.Fisheries.CatchAbundance(
  objs,
  fleets = "all",
  category = c("captured", "discarded", "retained", "discard mortality", "index"),
  cast = NULL,
  facet_grid = NULL,
  facet_wrap = NULL,
  scales = "fixed",
  dodge = 0.2,
  years = "all",
  mxy = 15,
  nrow = 5,
  lnscale = FALSE,
  plotPoints = TRUE,
  colour_scale = NULL,
  fill_scale = NULL,
  showPlot = FALSE,
  pdf = NULL,
  verbose = FALSE
)

Arguments

objs
  • list of resLst objects

fleets
  • names of fleets to include (or "all")

category
  • 'captured','discarded','retained','discard mortality', or 'index'

cast
  • cast'ing formula for aggregating by factors (x,m,s,z)

facet_grid
  • formula (or string version of formula) for faceting using facet_grid

facet_wrap
  • one-sided formula (e.g., "~y+x") or character vector (e.g., c('y','x')) for faceting using facet_wrap

scales
  • scales parameter for use with facet_grid/facet_wrap

dodge
  • width to dodge overlapping series

years
  • 'all' or vector of years to include

mxy
  • max number of years per page

nrow
  • number of rows per page, when facet_wrap'ing

lnscale
  • use log scale on y axis

plotPoints
  • flag to plot points

colour_scale
  • ggplot2 colour scale to substitute for default (if not NULL)

fill_scale
  • ggplot2 fill scale to substitute for default (if not NULL)

showPlot
  • flag (T/F) to show plot

pdf
  • creates pdf, if not NULL

verbose
  • flag (T/F) to print diagnostic information

Details

If 'z' is a cast'ing factor, then a set of annual size composition plots are produced. Otherwise, a set of time series plots are produced.

Value

list of ggplot2 objects


wStockhausen/rCompTCMs documentation built on Sept. 12, 2023, 3:13 p.m.