Cohort.plots: Plots of age-composition data observed and model predicted...

View source: R/Cohort.plots.R

Cohort.plotsR Documentation

Plots of age-composition data observed and model predicted with color coding by cohort

Description

The function Cohort.plots generates bar plot of observed age composition data with bars colored to track cohorts through time and model predicted values indicated by black dots and connected lines. Color coding tracks cohorts, accounting for skipped years; colors may be recycled depending on the number of ages.

Usage

Cohort.plots(
  x,
  DataName = deparse(substitute(x)),
  draft = TRUE,
  graphics.type = NULL
)

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.

Value

Graphics

Author(s)

M Prager

E Williams

K Shertzer

R Cheshire

K Purcell

Examples


Cohort.plots(gag)


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