compareModels.Fits.AggCatchData: Compare fits to aggregated catch data (abundance or biomass)...

Description Usage Arguments Details Value

View source: R/compareModels.Fits.AggCatchData.R

Description

Function to compare fits to aggregated catch data (abundance or biomass) for TCSAM2015 model runs.

Usage

1
2
3
4
compareModels.Fits.AggCatchData(mdfr, fleets = NULL, catch.types = NULL,
  logscale = FALSE, xlab = "Year", ylab = "", xlim = NULL,
  ylim = NULL, ggtheme = ggplot2::theme_grey(), showPlot = TRUE,
  pdf = NULL, width = 8, height = 6)

Arguments

mdfr

- dataframe from call to getMDFR.FitsForFleets(...)

fleets

- fleets to plot [NULL for all]

catch.types

- catch types ('index.catch', retained.catch', etc) to plot [NULL for all]

logscale

- flag (T/F) to plot on log scale

xlab

- x axis label

ylab

- y axis label

xlim

- x axis limits

ylim

- y axis limits

ggtheme

- graphical theme for plot

showPlot

- flag to show/print plots immediately

pdf

- name of pdf file to record plot output to

width

- pdf page width (in inches)

height

- pdf page width (in inches)

Details

Uses reshape2::dcast(...). Plots are produced by fleet and faceted by sex, maturity, shell condition, and catch type.

Value

list of ggplot2 objects, named by fleet


wStockhausen/rTCSAM2015 documentation built on May 3, 2019, 7:14 p.m.