plotRawData: Plot raw survey and fishery data.

View source: R/plotRawData.R

plotRawDataR Documentation

Plot raw survey and fishery data.

Description

Function to plot raw survey and fishery data.

Usage

plotRawData(
  srvData = NULL,
  fshData = NULL,
  yr2 = 1990,
  pdfType = "lognormal",
  ci = 0.95,
  verbose = FALSE,
  showPlot = FALSE
)

Arguments

srvData
  • survey data dataframe, path to csv file, or NULL

fshData
  • fisheries data dataframe, path to csv file, or NULL

yr2
  • starting year for 2nd arithmetic scale plot

pdfType
  • probability distribution for error bars

ci
  • confidence interval for error bar plots

verbose
  • flag (T/F) to print diagnostics, etc

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

Details

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

Value

list with named elements

  • srvData - dataframe w/ abundance is in ones and biomass is in t

  • fshData - dataframe w/ catch biomass is in t

  • plots - list with ggplot2 objects

    • retained catch time series

    • retained catch time series, recent time period

    • discard catch time series

    • discard catch time seies, recent time period

    • survey biomass time series

    • survey biomass time series, recent time period

    • survey biomass time series, log10-scale


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