Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting numeric (key) quantities #29

Merged
merged 39 commits into from
Dec 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
13b10ff
Wrote code to extract numeric quantities for values associated with b…
sbreitbart-NOAA Nov 27, 2024
c429faa
Wrote code to extract numeric quantities for values associated with r…
sbreitbart-NOAA Dec 2, 2024
6b591d1
removed "div" from Kobe plot object names; shortened est stock recrui…
sbreitbart-NOAA Dec 2, 2024
18d3a2c
Wrote code to extract numeric quantities for values associated with b…
sbreitbart-NOAA Nov 27, 2024
6fe9e26
Wrote code to extract numeric quantities for values associated with r…
sbreitbart-NOAA Dec 2, 2024
f52c894
removed "div" from Kobe plot object names; shortened est stock recrui…
sbreitbart-NOAA Dec 2, 2024
e46e85e
Merge branch 'key-quantities' of https://github.com/nmfs-ost/satf int…
sbreitbart-NOAA Dec 3, 2024
60004af
replacing repeated string with internal data
sbreitbart-NOAA Dec 3, 2024
03ff4c9
update(write_captions):
sbreitbart-NOAA Dec 10, 2024
403751e
update(utils): updated file.path() --> fs:::path()
sbreitbart-NOAA Dec 10, 2024
1cb2682
fixed documentation for multiple plotting fxns, and updated associate…
sbreitbart-NOAA Dec 10, 2024
f75554f
Merge branch 'master' into key-quantities
sbreitbart-NOAA Dec 10, 2024
c652a4d
feature(plot_recruitment): add option to append relative recruitment …
Schiano-NOAA Dec 11, 2024
a491edb
update(write_captions):
sbreitbart-NOAA Dec 12, 2024
284aee5
removed make_rda param from exp_all_figs_tables.R and updated documen…
sbreitbart-NOAA Dec 12, 2024
f5952b5
Merge pull request #33 from nmfs-ost/update-rda
sbreitbart-NOAA Dec 12, 2024
6e4a3de
feature(plot_biomass, plot_spawning_biomass): add option to append re…
sbreitbart-NOAA Dec 13, 2024
12d369d
Updating captions and alt text with quantities for relative B, SSB, r…
sbreitbart-NOAA Dec 16, 2024
d23331e
-updated write_captions quantities to be numeric and round to nearest…
sbreitbart-NOAA Dec 16, 2024
6eac0bd
update documentation
sbreitbart-NOAA Dec 16, 2024
a92e893
fix(b and sb plots): reformat plots so they still fxn even missing th…
Schiano-NOAA Dec 16, 2024
91a77c3
feature(plot_biomass): add annotation for reference line
Schiano-NOAA Dec 17, 2024
bf38ef8
fix double + in plot_biomass plot
Schiano-NOAA Dec 17, 2024
742c212
Merge pull request #34 from nmfs-ost/fix-b-sb-lines
Schiano-NOAA Dec 17, 2024
094ac58
Wrote code to extract numeric quantities for values associated with b…
sbreitbart-NOAA Nov 27, 2024
c73caa5
Wrote code to extract numeric quantities for values associated with r…
sbreitbart-NOAA Dec 2, 2024
69fcf9a
removed "div" from Kobe plot object names; shortened est stock recrui…
sbreitbart-NOAA Dec 2, 2024
884446a
replacing repeated string with internal data
sbreitbart-NOAA Dec 3, 2024
9574048
update(write_captions):
sbreitbart-NOAA Dec 10, 2024
f36fff3
update(utils): updated file.path() --> fs:::path()
sbreitbart-NOAA Dec 10, 2024
97feaba
fixed documentation for multiple plotting fxns, and updated associate…
sbreitbart-NOAA Dec 10, 2024
37eb7c2
feature(plot_recruitment): add option to append relative recruitment …
Schiano-NOAA Dec 11, 2024
7b020fc
update(write_captions):
sbreitbart-NOAA Dec 12, 2024
ce8a5e3
feature(plot_biomass, plot_spawning_biomass): add option to append re…
sbreitbart-NOAA Dec 13, 2024
9371371
Updating captions and alt text with quantities for relative B, SSB, r…
sbreitbart-NOAA Dec 16, 2024
27ca83b
-updated write_captions quantities to be numeric and round to nearest…
sbreitbart-NOAA Dec 16, 2024
8978341
Merge branch 'key-quantities' of https://github.com/nmfs-ost/satf int…
sbreitbart-NOAA Dec 17, 2024
dc2cc92
update(write_captions):
sbreitbart-NOAA Dec 17, 2024
dc17837
Changed underscores to periods in key quantities to avoid issues with…
sbreitbart-NOAA Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replacing repeated string with internal data
  • Loading branch information
sbreitbart-NOAA committed Dec 17, 2024
commit 884446a59fed17c1df674057a94a9b41791846a9
16 changes: 8 additions & 8 deletions R/write_captions.R
Original file line number Diff line number Diff line change
@@ -283,7 +283,7 @@ write_captions <- function(dat, # converted model output object
is.na(sex) | length(unique(sex)) <= 1,
is.na(area) | length(unique(area)) <= 1,
is.na(growth_pattern) | length(unique(growth_pattern)) <= 1,
!year %in% c('S/Rcurve', 'Init', 'Virg')
!year %in% year_exclusions
) |> # SS3 and BAM target module names
dplyr::mutate(estimate = as.numeric(estimate),
year = as.numeric(year)) |>
@@ -300,7 +300,7 @@ write_captions <- function(dat, # converted model output object
is.na(sex) | length(unique(sex)) <= 1,
is.na(area) | length(unique(area)) <= 1,
is.na(growth_pattern) | length(unique(growth_pattern)) <= 1,
!year %in% c('S/Rcurve', 'Init', 'Virg')
!year %in% year_exclusions
) |> # SS3 and BAM target module names
dplyr::mutate(estimate = as.numeric(estimate),
year = as.numeric(year)) |>
@@ -321,7 +321,7 @@ write_captions <- function(dat, # converted model output object
is.na(sex) | length(unique(sex)) <= 1,
is.na(area) | length(unique(area)) <= 1,
is.na(growth_pattern) | length(unique(growth_pattern)) <= 1,
!year %in% c('S/Rcurve', 'Init', 'Virg')
!year %in% year_exclusions
) |> # SS3 and BAM target module names
dplyr::mutate(estimate = as.numeric(estimate),
year = as.numeric(year)) |>
@@ -338,7 +338,7 @@ write_captions <- function(dat, # converted model output object
is.na(sex) | length(unique(sex)) <= 1,
is.na(area) | length(unique(area)) <= 1,
is.na(growth_pattern) | length(unique(growth_pattern)) <= 1,
!year %in% c('S/Rcurve', 'Init', 'Virg')
!year %in% year_exclusions
) |> # SS3 and BAM target module names
dplyr::mutate(estimate = as.numeric(estimate),
year = as.numeric(year)) |>
@@ -361,7 +361,7 @@ write_captions <- function(dat, # converted model output object
is.na(sex) | length(unique(sex)) <= 1,
is.na(area) | length(unique(area)) <= 1,
is.na(growth_pattern) | length(unique(growth_pattern)) <= 1,
!year %in% c('S/Rcurve', 'Init', 'Virg')
!year %in% year_exclusions
) |> # SS3 and BAM target module names
dplyr::mutate(estimate = as.numeric(estimate),
year = as.numeric(year)) |>
@@ -390,7 +390,7 @@ write_captions <- function(dat, # converted model output object
is.na(sex) | length(unique(sex)) <= 1,
is.na(area) | length(unique(area)) <= 1,
is.na(growth_pattern) | length(unique(growth_pattern)) <= 1,
!year %in% c('S/Rcurve', 'Init', 'Virg')
!year %in% year_exclusions
) |> # SS3 and BAM target module names
dplyr::mutate(estimate = as.numeric(estimate),
year = as.numeric(year)) |>
@@ -411,7 +411,7 @@ write_captions <- function(dat, # converted model output object
is.na(sex) | length(unique(sex)) <= 1,
is.na(area) | length(unique(area)) <= 1,
is.na(growth_pattern) | length(unique(growth_pattern)) <= 1,
!year %in% c('S/Rcurve', 'Init', 'Virg')
!year %in% year_exclusions
) |> # SS3 and BAM target module names
dplyr::mutate(estimate = as.numeric(estimate),
year = as.numeric(year)) |>
@@ -428,7 +428,7 @@ write_captions <- function(dat, # converted model output object
is.na(sex) | length(unique(sex)) <= 1,
is.na(area) | length(unique(area)) <= 1,
is.na(growth_pattern) | length(unique(growth_pattern)) <= 1,
!year %in% c('S/Rcurve', 'Init', 'Virg')
!year %in% year_exclusions
) |> # SS3 and BAM target module names
dplyr::slice(which.max(estimate)) |>
dplyr::select(estimate) |>