plot.overall.composition.fit: Plot composite catch-at-length data for each fishery.

View source: R/plot.overall.composite.fit.R

plot.overall.composition.fitR Documentation

Plot composite catch-at-length data for each fishery.

Description

Plot composite (all time periods combined) observed and predicted catch-at-length for each fishery. The table comes from the length.fit file and has already been processed using the length.fit.preparation() function (which is based on Yukio's code). This may also work with weight.fit data but has not been tested yet.

Usage

plot.overall.composition.fit(
  lfit,
  fisheries,
  fishery_names,
  save.dir,
  save.name,
  ncol = NULL,
  xlab = "Length (cm)"
)

Arguments

lfit

A data.frame of observed and predicted composite catch-at-length data (generated using length.fit.preparation()).

fisheries

The numbers of the fisheries to plot.

fishery_names

The names of the fisheries to plot.

save.dir

Path to the directory where the outputs will be saved

save.name

Name stem for the output, useful when saving many model outputs in the same directory

ncol

Number of columns to plot across. Default is ggplot2 default.

xlab

Label for the xaxis.


PacificCommunity/ofp-sam-diags4MFCL documentation built on Oct. 11, 2023, 1:32 a.m.