CLD.total.plots: Time plots of model catch, landings, and discards by fishery

View source: R/CLD.total.plots.R

CLD.total.plotsR Documentation

Time plots of model catch, landings, and discards by fishery

Description

The function CLD.total.plots generates barplots of estimated catch, landings, and discards (in numbers and weight) over time. Each bar is subdivided by fishery.

Usage

CLD.total.plots(
  x,
  DataName = deparse(substitute(x)),
  draft = TRUE,
  graphics.type = NULL,
  use.color = TRUE,
  first.year = 0,
  units.CLD.n = x$info$units.numbers,
  units.CLD.w = x$info$units.biomass,
  CLD.n.references = NULL,
  CLD.w.references = NULL,
  plot.proportion = TRUE
)

Arguments

x

an R list with output from the assessment models.

DataName

string used in plot titles. Defaults to argument x.

draft

modifies plots for use in a report. When FALSE main titles are omitted.

graphics.type

a vector of graphics file types to which graphics are saved. When NULL, no plots are saved.

use.color

plots are made in grayscale when FALSE

first.year

An integer (e.g. 1960) indicating the first year for plots. The subsetting is done via row names of the matrices being plotted.

units.CLD.n

A text string (e.g. "million fish") used in labeling Y-axis of plots of numbers caught, landed, or discarded.

units.CLD.w

A text string (e.g. "t") used in labeling the Y-axis of plots of biomass caught, landed, or discarded.

CLD.n.references

A list of three character-string names that specify reference points in numbers, in order of catch, landings, and discards, to be included on numbers plots. Input NULL for none, e.g., CLD.w.references=list(NULL,"msy.num","Dmsy.num").

CLD.w.references

A list of three character-string names that specify reference points in biomass, in order of catch, landings, and discards, to be included on biomass plots. Input NULL for none, e.g., CLD.w.references=list(NULL,"msy", NULL).

plot.proportion

When TRUE, additional plots are made, scaled as proportions.

Value

None

Author(s)

M Prager

E Williams

K Shertzer

R Cheshire

K Purcell

Examples


CLD.total.plots(gag)



rcheshire/FishGraph documentation built on Feb. 23, 2024, 11:27 a.m.