compareResults.Surveys.Catchability: Function to plot survey catchabilities by year using ggplot2

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

compareResults.Surveys.CatchabilityR Documentation

Function to plot survey catchabilities by year using ggplot2

Description

This function plots survey catchability estimates by year, sex and maturity state.

Usage

compareResults.Surveys.Catchability(
  objs,
  fleets = "all",
  years = "all",
  cast = "x",
  dodge = 0.2,
  facet_grid = "x~.",
  scales = "free_y",
  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.Catchablity

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

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

cast
  • formula to exclude factors from "averaging" over

dodge
  • width to dodge overlapping series

facet_grid
  • ggplot2 formula to produce figure with gridded facets

scales
  • parameter passed to ggplot2::facet_grid()

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

list of ggplot2 objects


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