compareResults.Surveys.AvlFcns: Function to compare survey availability functions by year...

View source: R/compareResults.Surveys.AvlFcns.R

compareResults.Surveys.AvlFcnsR Documentation

Function to compare survey availability functions by year among several models

Description

This function compares survey availability functions by year among several models.

Usage

compareResults.Surveys.AvlFcns(
  objs,
  cast = "y+x",
  fleets = "all",
  years = "all",
  dodge = 0.2,
  singlePlot = FALSE,
  mxy = 15,
  facet_wrap = NULL,
  facet_grid = ifelse(singlePlot, "x~case", "y~x"),
  plotPoints = FALSE,
  colour_scale = NULL,
  fill_scale = NULL,
  pdf = NULL,
  showPlot = FALSE,
  verbose = FALSE
)

Arguments

objs
  • list of resLst objects or dataframe from call to extractMDFR.Surveys.AvlFcns

cast
  • formula to exclude factors from "averaging" over

fleets
  • vector of fleets to plot, or "all"

years
  • vector of years to show, or 'all' to show all years

dodge
  • width to dodge overlapping series

singlePlot
  • flag to plot all years on single plot (be sure to adjust facet_grid)

mxy
  • max number of years per page

facet_wrap
  • ggplot2 formula to produce figure with wrapped facets

facet_grid
  • ggplot2 formula to produce figure with gridded facets

plotPoints
  • flag to include points (default: FALSE)

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

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

pdf
  • creates pdf, if not NULL

showPlot
  • flag (T/F) to show plot

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

Details

None.

Value

ggplot2 object, or null


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