plotPop.MeanGrowthPlusProbs: Plot mean and probability of post-molt size for several model...

View source: R/plotPop.MeanGrowthPlusProbs.R

plotPop.MeanGrowthPlusProbsR Documentation

Plot mean and probability of post-molt size for several model runs

Description

Function to plot mean and probability of post-molt size for several model runs.

Usage

plotPop.MeanGrowthPlusProbs(
  mdfrMnG,
  mdfrPrG,
  scale = 10,
  xbnds = NULL,
  ybnds = NULL,
  zbnds = c(25, 185),
  showPlot = FALSE,
  verbose = FALSE
)

Arguments

mdfrMnG
  • melted dataframe for mean growth (from calling rTCSAM02::getMDFR.Pop.MeanGrowth)

mdfrPrG
  • melted dataframe with growth probabilities (from calling rTCSAM02::getMDFR.Pop.GrowthMatrices)

scale
  • scaling factor for probabilities

zbnds
  • 2-element vector indicating lower and upper bounds on model size bins

showPlot
  • flag to print plot to current device

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

Details

Mean post-molt size as a function of pre-molt size is plotted as a line for each case (model), overlaid on the (scaled) actual probability of post-molt size. Cases are distinguished by fill and line colours. A 1:1 line and lines indicating the model size limits are also shown. Plots are produced by sex, and a list of plots is returned.

Value

list of ggplots by sex


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