Skip to content

Refactor auto plot all models - #539

Merged
Schiano-NOAA merged 8 commits into
nmfs-ost:mainfrom
JZahner1:refactor-auto_plot_all_models
Nov 30, 2026
Merged

Schiano-NOAA merged 8 commits into
nmfs-ost:mainfrom
JZahner1:refactor-auto_plot_all_models

Conversation

@JZahner1

@JZahner1 JZahner1 commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

What is the feature?

  • Automatically plot "All" available models in a dataset rather than prompting for model selection.

How have you implemented the solution?

  • The default parameter value for all plotting functions that allow for multi-model selection have been updated to model="All", which automatically bypasses interactive selection and plots all available models. If model=NULL, interactive selection becomes available, as was previously implemented.

Does the PR impact any other area of the project, maybe another repo?

Closes #531 and #536

PR contribution checklist

Thank you for contributing to stockplotr! Please check the boxes below to confirm this pull request (PR) is ready for review. Edit this PR description to add the release indicator and any explanations.

  • I have read and adhered to the contributor guide.
  • I have kept this PR focused on one plot where applicable. For multiple features, I have used separate PRs (stacked PRs are welcome if needed).
  • I have aimed to keep this PR to no more than 750 lines, excluding tests and example data (for example, up to 750 lines for a new function).
  • If I have provided an example dataset, I have explained why the existing sample datasets are not sufficient.
  • I have tested that my changes are compatible with all example outputs in the "data" folder (example_data.rda; pollock.rda; ss3_simple.rda; vermilion_snapper.rda).
  • If I didn't follow the development workflow, I have explained why in this PR.
  • If applicable, I've added the plot to save_all_plots() and updated the associated tests in test-save_all_plots.R.
  • After opening this PR, I have checked that my own tests and spellcheck pass (spelling::spell_check_package()). If other checks fail, I have flagged them for the package maintainers to help diagnose and remedy.
  • I have requested review from one package maintainer (Sam or Sophie).

Comment thread R/plot_abundance_at_age.R Resolved
Comment thread R/convert_output.R Resolved
Comment thread R/plot_spawning_biomass.R Resolved
Comment thread R/table_biomass_abundance_catch.R Resolved
Comment thread R/utils_plot.R Resolved
Comment thread R/utils_plot.R Resolved
Comment thread R/utils_plot.R Resolved
Comment thread tests/testthat/test-utils_plot.R Resolved

@Schiano-NOAA Schiano-NOAA left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make the small changes to the naming of the default argument to "all" and address my other comments otherwise will be good to go after

@Schiano-NOAA

Copy link
Copy Markdown
Collaborator

I just merged a different PR. Could you resolve the merge conflicts then I will merge this into main!

@Schiano-NOAA
Schiano-NOAA merged commit 1159503 into nmfs-ost:main Nov 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[refactor]: remove optional model selection argument from function

2 participants