get_depth_by_year: Get depth data by year and calculate boxplot stats on it.

View source: R/plot-boxplot.R

get_depth_by_yearR Documentation

Get depth data by year and calculate boxplot stats on it.

Description

Get depth data by year and calculate boxplot stats on it.

Usage

get_depth_by_year(
  d,
  type = c("bottom", "gear"),
  yrs = NULL,
  min_depth_cutoff = 50/1.8288
)

Arguments

d

Output from [load_spatial_catch_data().

type

One of "bottom" or "gear" for depth type.

yrs

A vector of years to include. If NULL, all years in the data will be included.

min_depth_cutoff

The depth for which to remove data. In fasthoms. All data shallower than this will be removed.

Value

A tibble containing year and depth record stats.


pacific-hake/hake-assessment documentation built on Jan. 14, 2025, 9:12 p.m.