plotAvgdData: Plot averaged data.

View source: R/plotAvgdData.R

plotAvgdDataR Documentation

Plot averaged data.

Description

Function to plot averaged (and raw) data using output from one of the surveyAveraging functions.

Usage

plotAvgdData(dfr, yr2 = 1990, maxY = NULL, verbose = FALSE, showPlot = FALSE)

Arguments

dfr
  • dataframe output from one of the surveyAveraging functions

yr2
  • starting year for 2nd arithmetic-scale plot

maxY
  • optional max scale for arithmetic-scale y axes

verbose
  • flag (T/F) to print intermediate output

showPlot
  • flag (T/F) to show plots immediately

Details

Biomass units are assumed to be in t, abundance units in ones.

Value

list with ggplot2 objects as named elements

  • arScl1 - arithmetic scale plot

  • arScl2 - arithmetic scale plot, sstarting at yr2

  • lnScl = log-scale plot


wStockhausen/rPIBKC documentation built on April 25, 2023, 6:50 p.m.