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

View source: R/figures.R

plot_wa_by_gearR Documentation

Plot weight-at-age time series from a data frames as extracted from csv files created by dataSummaries

Description

Plot weight-at-age time series from a data frames as extracted from csv files created by dataSummaries

Usage

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

Arguments

df

a data frame

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.