Skip to content

Commit

Permalink
Update age-1 help; default to joining up biomasses when don't have un…
Browse files Browse the repository at this point in the history
…certainty (think only affects age-1 hake for now) as easier to see.
  • Loading branch information
andrew-edwards committed Dec 4, 2024
1 parent d7ad2a0 commit 19f0621
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 2 additions & 5 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -712,18 +712,15 @@
##' from California to British Columbia.
##'
##' See `?hake_recruitment` for further details and references, and explanations
##' of `hake_total_biomass_age_1_2024`.
##' of `hake_total_biomass_age_1_2024`. Credible intervals were not easily
##' available but may be included in future updates.
##'
##' @format A tibble also of class `pacea_biomass` with columns:
##' \describe{
##' \item{year:}{year of the estimate of total age-1 biomass (all females and
##' males), where the estimate is for the start of the year}
##' \item{low:}{low end (2.5th percentile) of the 95\% credible interval for
##' age-1 biomass; not available (easily) so `NA` for all years}
##' \item{median:}{median estimate of age-1 biomass, in thousands of tonnes at
##' the start of the year}
##' \item{high:}{high end (97.5th percentile) of the 95\% credible interval for
##' age-1 biomass; not available (easily) so `NA` for all years}
##' }
##'
##' @examples
Expand Down
10 changes: 9 additions & 1 deletion R/plot-pacea-biomass.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,15 @@ plot.pacea_biomass <- function(obj,
obj_lub[[value]], # [[]] returns a vector not a tibble
xlab = xlab,
ylab = ylab,
...)
type = median_type,
pch = median_pch,
col = median_line_col,
lty = median_line_lty,
lwd = median_line_lwd,,
...) # for hake age-1 (no error) it's easier to see them
# joined up,
# even though it's really recruitment which I prefer
# to not join
}

if(attr(obj_lub, "axis_name") == "Pacific Hake spawning biomass (million t)"){
Expand Down

0 comments on commit 19f0621

Please sign in to comment.