compareResults.Fisheries.Catchability: Function to plot fishery catchabilities by year using ggplot2

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

compareResults.Fisheries.CatchabilityR Documentation

Function to plot fishery catchabilities by year using ggplot2

Description

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

Usage

compareResults.Fisheries.Catchability(
  objs,
  fleets = "all",
  years = "all",
  cast = "x",
  dodge = 0.2,
  facet_grid = "x~.",
  scales = "free_y",
  plotPoints = TRUE,
  colour_scale = NULL,
  fill_scale = NULL,
  pdf = NULL,
  showPlot = FALSE,
  verbose = FALSE
)

Arguments

objs
  • list of resLst objects

fleets
  • vector of fisheries 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 plot points

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

lists ofggplot2 objects, nested by fishery or an empty list if year is NULL


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