Skip to content

Commit

Permalink
Take log of age-1 hake, tweak descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-edwards committed Jan 26, 2025
1 parent 7ed200b commit 7129f4a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions R-temp/ecosystem-summary-hake-glorys.R
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ ecosystem_summary_hake_glorys <- function(max_year = 2024,
ylab = "",
ylim = rev(range(mld_late_larv_index$anomaly)),
y_axis_reverse = TRUE)
mtext("Mean mixed layer depth (Mar-Jun) - TODO figure out",
mtext("Mean mixed layer depth during late larval stage (Mar-Jun) - shallower reduces recruitment",
side = 3, adj = 0, cex = 0.7, line = 0.3)

plot(mld_yolk_index, lwd = lwd_index,
Expand All @@ -176,7 +176,7 @@ ecosystem_summary_hake_glorys <- function(max_year = 2024,
ylab = "",
ylim = rev(range(mld_yolk_index$anomaly)),
y_axis_reverse = TRUE)
mtext("Mean location of mixed layer depth (Jan-Apr)",
mtext("Mean mixed layer depth during yolk stage (Jan-Apr) - shallower reduces recruitment",
side = 3, adj = 0, cex = 0.7, line = 0.3)
mtext("Year", side = 1, line = 3)
}
13 changes: 7 additions & 6 deletions R-temp/ecosystem-summary-hake.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ ecosystem_summary_hake <- function(max_year = 2024,


# shift years by 1 like herring, take log (as in Vestfals) and then restandardise
hake_age1_index <- dplyr::filter(hake_total_biomass_age_1,
hake_log_age1_index <- dplyr::filter(hake_total_biomass_age_1,
year >= min_year - 1) %>%
dplyr::mutate(year = year + 1,
anomaly = standardise(median))
class(hake_age1_index) <- class(oni)
log_median = log(median),
anomaly = standardise(log_median))
class(hake_log_age1_index) <- class(oni)

x_lim <- c(lubridate::dmy(paste0("0101", 1965)),
lubridate::dmy(paste0("0101", max_year))) # TODO automate
Expand Down Expand Up @@ -162,14 +163,14 @@ ecosystem_summary_hake <- function(max_year = 2024,
mtext("North Pacific Gyre Oscillation preconditioning index - higher general production, higher recruitment next year",
side = 3, adj = 0, cex = 0.7, line = 0.3)

plot(hake_age1_index, lwd = lwd_index,
plot(hake_log_age1_index, lwd = lwd_index,
xlim = x_lim,
xlab = "",
ylab = "",
ylim = rev(range(hake_age1_index$anomaly)),
ylim = rev(range(hake_log_age1_index$anomaly)),
y_axis_reverse = TRUE)

mtext("Hake total biomass of age-1 fish - predation on age-0 fish",
mtext("Hake total log biomass of age-1 fish - predation on age-0 fish",
side = 3, adj = 0, cex = 0.7, line = 0.3)
mtext("Year", side = 1, line = 3)

Expand Down

0 comments on commit 7129f4a

Please sign in to comment.