compareSizeFreqs.ByYear: Plot multiple size frequencies for comparison by year.

Description Usage Arguments Details

View source: R/compareSizeFreqs.ByYear.WideFormat.R

Description

Function to plot visual comparisons of size frequencies by year.

Usage

1
2
3
compareSizeFreqs.ByYear(dfrs = NULL, n = 1, lbls = NULL, norm = TRUE,
  vlines = c(127, 140), ltys = 1:4, cols = c("blue", "green", "cyan",
  "gray"), plotPDF = FALSE, nc = 4, nr = 5, pdfFile = "compZFs.pdf")

Arguments

dfrs

- list of dataframes w/ size frequencies to compare

n

- number of size frequency "types" to compare (ignored if dfrs is given)

lbls

- vector of labels for size frequency "types" to use in plot legend

norm

- flag (T/F) to plot normalized size frequencies

vlines

- sizes at which to plot vertical reference lines

ltys

- vector of line types to use to plot size freq.s

cols

- vector of colors to use to plot size freq.s

plotPDF

- flag (T/F) to output plots to a pdf file

nc

- number of columns per page in which to arrange plots for pdf output

nr

- number of rows per page in which to arrage plots for pdf output

pdfFile

- name of output pdf file

Details

Dataframes should be derived from "wide" format csv files for size frequencies with year as first column and subsequent columns containing the size frequencies.

If 'dfrs' is NULL, then 'n' represents the number of size frequency files the user will be prompted to specify for the comparison.


wStockhausen/tcsamCrabFisheryData documentation built on July 18, 2021, 9:17 a.m.