Repository navigation
create initial versions of composition plots - #424
Open
ericward-noaa wants to merge 5 commits into
Open
ericward-noaa wants to merge 5 commits into
ericward-noaa wants to merge 5 commits into
Conversation
Added new entries to the WORDLIST file.
- change example / diagnostic dataset from simulated to big skate - added more plots from ian's list - more / better tests
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is related to this FIMS discussion, NOAA-FIMS/FIMS#1873, and this
r4ssissue r4ss/r4ss#1104 (comment), the need to generate composition plots.Copilot summary:
This pull request adds a comprehensive set of tools for visualizing and diagnosing composition data (age/length) in fisheries stock assessment, including new plotting functions, example data, and extensive documentation. The main changes are the introduction of new plotting functions for composition data and their documentation, the addition of a simulated example dataset, and updates to the package exports and documentation to support these features.
New composition plotting and diagnostics functionality:
Added new plotting functions for composition data:
plot_comp,plot_comp_bubble,plot_comp_mean,plot_comp_residuals, andplot_comp_sex_ratio, along with a data preparation functionprepare_comp_data. These functions provide a variety of diagnostic plots for observed and expected age/length compositions, including bubble plots, mean trends, Pearson residuals, and sex ratio plots. [1] [2]Added man page documentation for all new functions, describing their usage, arguments, outputs, and examples:
plot_comp.Rd,plot_comp_bubble.Rd,plot_comp_mean.Rd,plot_comp_residuals.Rd,plot_comp_sex_ratio.Rd, andprepare_comp_data.Rd. [1] [2] [3] [4] [5] [6]Example data and reproducibility:
example_comp_data(with generation code and documentation) to demonstrate the composition plotting functions. This data includes sex-specific age compositions for a fishery and a survey, with known patterns of misfit for testing diagnostics. [1] [2] [3]Documentation and navigation updates:
These changes significantly expand the package's capabilities for composition data analysis and provide users with tools and guidance for diagnosing model fit to age/length compositions.