compareFits.AbundanceData: Compare fits to abundance time series by fleet among several...

View source: R/compareFits.AbundanceData.R

compareFits.AbundanceDataR Documentation

Compare fits to abundance time series by fleet among several model runs

Description

Function to compare fits to abundance time series by fleet among several model runs.

Usage

compareFits.AbundanceData(
  objs = NULL,
  fleets = "all",
  fleet.type = c("survey", "fishery"),
  catch.type = c("index", "retained", "discard", "total"),
  ci = 0.8,
  fishery.pdfType = c("norm2", "normal", "lognormal"),
  numRecent = 15,
  plot1stObs = TRUE,
  scales = "free_y",
  position = position_dodge(0.3),
  pdf = NULL,
  showPlot = FALSE,
  verbose = FALSE
)

Arguments

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

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

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

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

ci
  • confidence interval for plots

fishery.pdfType
  • choice for fishery CIs ("norm2","normal","lognormal")

numRecent
  • number of recent years to include in "recent years" plots

plot1stObs
  • flag (T/F) to plot observations only from the first model

scales
  • ggplot2 scales option for facet_grid

position
  • indicates ggplot2 position_ to use ('dodge','jitter','identity',)

pdf
  • name for output pdf file

showPlot
  • flag (T/F) to show plot

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

Details

Uses rTCSAM2013::getMDFR.SurveyQuantities(), rTCSAM2013::getMDFR.FisheryQuantities(), rTCSAM02::getMDFR.Fits.FleetData(). Also uses wtsUtilities::printGGList.

Value

Non-nested list of ggplot2 objects, with captions as names, or NULL.


wStockhausen/rCompTCMs documentation built on Aug. 27, 2024, 7:15 p.m.