plot_wa: Plot weight-at-age time series from a data frames as...

View source: R/figures.R

plot_waR Documentation

Plot weight-at-age time series from a data frames as extracted from iscam data (dat) files

Description

Plot weight-at-age time series from a data frames as extracted from iscam data (dat) files

Usage

plot_wa(
  df,
  circle_age = 3,
  xlim = c(1000, 3000),
  ylim = c(0, NA),
  n_roll = 5,
  major = TRUE,
  translate = FALSE
)

Arguments

df

a data frame as constructed by [get_wa()]

circle_age

the age for which to add circles to plot

xlim

Limits for the years shown on the plot

ylim

limits for the weights shown on the plot

n_roll

Number of years to calculate the rolling mean (window)

major

Logical. Major SAR or not.

translate

Logical. If TRUE, translate to French

Value

A ggplot object


pbs-assess/herringutils documentation built on Jan. 10, 2025, 8:43 a.m.