Landings.plots: Landings and discards trajectories

View source: R/Landings.plots.R

Landings.plotsR Documentation

Landings and discards trajectories

Description

The function Landings.plots provides time trajectories of landings and discards by fishery. Optional arguments specify whether data represent observed and predicted landings or simply independent series of landings. The same holds for discards.

Usage

Landings.plots(
  x,
  DataName = deparse(substitute(x)),
  draft = TRUE,
  graphics.type = NULL,
  use.color = TRUE,
  from.zero = TRUE,
  L.units = x$info$units.landings,
  D.units = x$info$units.discards,
  start.drop = 0,
  L.obs.pre = TRUE,
  D.obs.pre = 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.

from.zero

When TRUE, the Y-axis of each plot starts at zero.

L.units

Character vector containing units of measure associate with each landings series found in x$t.series.

D.units

Same as the preceding, but for discards.

start.drop

Number of years at the start of the data to be omitted from plots, as when a model includes an initialization period.

L.obs.pre

When TRUE, landings data are interpreted as pairs of columns (observed and predicted). When FALSE, each column represents observed landings.

D.obs.pre

Same as the preceding, but for discards.

Value

Graphics

Author(s)

M Prager

E Williams

K Shertzer

R Cheshire

K Purcell

Examples


Landings.plots(gag)


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