compareFits.SingleYearSizeComps: Compare fits to single-year size comps by fleet among several...

View source: R/compareFits.SingleYearSizeComps.R

compareFits.SingleYearSizeCompsR Documentation

Compare fits to single-year size comps by fleet among several model runs

Description

Function to compare fits to single-year size comps by fleet among several model runs.

Usage

compareFits.SingleYearSizeComps(
  objs = NULL,
  mdfr = NULL,
  fleets = "all",
  fleet.type = c("survey", "fishery"),
  catch.type = c("index", "retained", "discard", "total"),
  years = "all",
  colour = "case",
  facets = x + m + s ~ .,
  scales = "fixed",
  plot1stObs = TRUE,
  useBars = TRUE,
  usePins = FALSE,
  usePinsAndPts = FALSE,
  useLines = TRUE,
  usePoints = TRUE,
  pinSize = 0.2,
  lineSize = 0.2,
  pointSize = 1,
  alpha = 0.5,
  stripText = ggplot2::element_text(),
  pdf = NULL,
  showPlot = FALSE,
  verbose = FALSE
)

Arguments

objs
  • object that can be converted into a list of tcsam2013.resLst and/or tcsam02.resLst objects

mdfr
  • dataframe from call to extractFits.SizeComps() (as alternative to objs)

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

fleet.type
  • fleet type ('fishery' or 'survey')

catch.type
  • catch type ('index','retained', or 'total')

years
  • years to plot, as numerical vector

colour
  • column name for colours (default="case")

facets
  • formula for faceting (default = x+m+s~.)

scales
  • character string indicating how x and y axis scales are handled in faceting (default = "fixed")

plot1stObs
  • flag (T/F) to plot observations only from first case, or character vector cases cases from which to plot observations

useBars
  • flag to use bars for observations

usePins
  • flag to use pins for observations

usePinsAndPts
  • flag to add pts to observations when pins are used

useLines
  • flag to use lines for predictions

usePoints
  • flag to use points for predictions

pinSize
  • width of pin line

lineSize
  • prediction line size

pointSize
  • prediction point size

alpha
  • prediction transparency

stripText
  • ggplot2::element_text() object describing font and margin to use for panel strips

pdf
  • name for output pdf file

showPlot
  • flag (T/F) to show plot

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

Details

Uses extractFits.SizeComps() to extract results. Also uses wtsUtilities::printGGList().


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