extractFits.MeanSizeComps: Extract fits to mean size comps by fleet among several model...

View source: R/extractFits.MeanSizeComps.R

extractFits.MeanSizeCompsR Documentation

Extract fits to mean size comps by fleet among several model runs

Description

Function to extract fits to mean size comps by fleet among several model runs.

Usage

extractFits.MeanSizeComps(
  objs = NULL,
  fleets = "all",
  fleet.type = c("survey", "fishery"),
  catch.type = c("index", "retained", "discard", "total"),
  years = "all",
  ci = 0.8,
  plot1stObs = TRUE,
  verbose = FALSE
)

Arguments

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 (or "all" to plot all years)

ci
  • confidence interval

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

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

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

facet_grid
  • faceting formula for ggplot2::facet_grid()

pdf
  • name for output pdf file

showPlot
  • flag (T/F) to show plot

Details

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

Value

dataframe in canonical format


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