plot_spawn_ind: Plot survey indices from data frames as extracted from iscam...

View source: R/figures.R

plot_spawn_indR Documentation

Plot survey indices from data frames as extracted from iscam data (dat) files

Description

Plot survey indices from data frames as extracted from iscam data (dat) files

Usage

plot_spawn_ind(
  df,
  yr_range = NA,
  new_surv_yr = NA,
  new_surv_yr_type = "dashed",
  new_surv_yr_size = 0.25,
  translate = FALSE
)

Arguments

df

a data frame as constructed by [get_surv_ind()]

yr_range

Start and end year, or NA to include all the data

new_surv_yr

Year in which the survey type changed. Will be shown as a vertical line

new_surv_yr_type

ggplot linetype for new_survey_yr

new_surv_yr_size

ggplot line size for new_survey_yr

translate

Logical. If TRUE, translate to French

ylim

limits for the ages shown on the plot

Value

A ggplot object


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