plotCleaned: Plot cleaned fishery age- or length-composition data.

View source: R/plotCleaned.R

plotCleanedR Documentation

Plot cleaned fishery age- or length-composition data.

Description

Save several figures to your computer that summarize the composition samples that are available for the given species. None of the figures are meant to be included in the stock assessment document, but rather, are for exploring the data.

Usage

plotCleaned(Pdata, savedir = getwd())

Arguments

Pdata

A data frame returned from PullBDS.PacFIN() containing biological samples. These data are stored in the Pacific Fishieries Information Network (PacFIN) data warehouse, which originated in 2014 and are pulled using sql calls.

savedir

A file path to the directory where the results will be saved. The default is NULL.

Value

The following figures are saved to savedir:

  • PacFIN_comp_Nbystate.png

  • PacFIN_comp_distributions.png

  • PacFIN_comp_NbyGRID.png

  • PacFIN_comp_depth.png

  • PacFIN_comp_geargroup.png

  • PacFIN_comp_INPFC.png

  • PacFIN_comp_lengthvage.png

Author(s)

Andi Stephens, Kelli F. Johnson

See Also

This function is called by cleanPacFIN and heavily relies on getGearGroup to create gear categories.


nwfsc-assess/PacFIN.Utilities documentation built on July 4, 2025, 9:06 a.m.