compareResults.Pop.RecSizeDistribution: Compare recruitment size distributions among several model...

View source: R/compareResults.Pop.RecSizeDistribution.R

compareResults.Pop.RecSizeDistributionR Documentation

Compare recruitment size distributions among several model runs

Description

Function to compare recruitment size distributions among several model runs.

Usage

compareResults.Pop.RecSizeDistribution(
  objs,
  scaleToDensity = FALSE,
  aggToCutpts = FALSE,
  cutpts = seq(25, 185, 5),
  dodge = 0.2,
  plotPoints = FALSE,
  colour_scale = NULL,
  fill_scale = NULL,
  showPlot = TRUE,
  pdf = NULL,
  verbose = FALSE
)

Arguments

objs
  • list of resLst objects (or a dataframe from extractMDFR.Pop.RecSizeDistribution())

scaleToDensity
  • flag to scale abundance to 1-mm size bins

aggToCutpts
  • flag to aggregate (rebin) to provided cutpts

cutpts
  • cutpoints to aggregate to

dodge
  • width to dodge overlapping series

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)

showPlot
  • flag to print plot to current device

pdf
  • name for output pdf file

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

Details

If scaleToDensity is true, the size distribution is scaled to abundance/mm to allow easier comparison between models with different bin sizes. If aggToCutpts is true, the distribution(s) are re-binned (aggregated) to a common set of cutpoints. If objs is a list of resLst objects, then extractMDFR.Pop.RecSizeDistribution() is called first to obtain the size distributions.

Value

ggplot object


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