Add composition plots for diagnostics etc
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 15/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- r
- Domain
- data-visualization
Research direction
The issue lists seven composition plot types (observed-only distributions, bubble plots, observed-vs-expected distributions, Pearson residuals, sex ratios, mean age or length time series, plus fleet-specific and aggregated variants) but names no stockplotr file, function or test. Start by reading the existing plotting functions in the R package and the r4ss examples linked in the issue, then agree with maintainers on the input data format and which plot to build first. Done means one plot type generates from composition data and has a test.
Written by the indexing model from the issue text.
Description
See this conversation for more detail https://github.com/NOAA-FIMS/FIMS/pull/1873 from @iantaylor-NOAA
The categories of composition that r4ss creates for SS3 models include
- Distribution plots of observations only (I think this is the most intuitive way to look at comps)
- Bubble plots of observations only (Easier to see patterns of cohort strengths across years)
- Distribution plots of observations and expected values (intuitive way to look at fit)
- Pearson residuals (more statistically rigorous way to look at fit, easier to see blocks/stripes of misfit among years or bins)
- Sex ratios implied by the ratio of female / (female + male) observed and expected comps (helps see trends in lack of fit, especially for bins with smaller proportions that have small residuals)
- Time series of mean age or length in the observed and expected comps (created as diagnostic for Francis weighting method, but very helpful to summarize trends among years)
- The set include both fleet-specific plots and plots for all fleets aggregated across years.
Examples of the r4ss plots are at
https://r4ss.github.io/r4ss/BigSkate/_SS_output_CompDat.html (observations only)
https://r4ss.github.io/r4ss/BigSkate/_SS_output_LenComp.html (most of the rest)
https://r4ss.github.io/r4ss/BigSkate/[email protected] (residuals and "Andre plots" for conditional age-at-length data)
- Dominant language
- R
- Stars
- 20
- Forks
- 9
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 12
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nmfs-ost/stockplotr
-
[tests]: Set modules in all plot_* calls within test functionsPossibly taken @Schiano-NOAA claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nmfs-ost/stockplotr#416 · 5 comments · 1 reaction · 2 assignees ·
Maintainers usually reply within 1 day
-
[fix]: module name selection retained in environment when `make_rda = T`Possibly taken @sbreitbart-NOAA claimed this 3 days ago. Openbug
nmfs-ost/stockplotr#421 · 5 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Make tests more efficientPossibly taken @JZahner1 claimed this 3 days ago. Open
nmfs-ost/stockplotr#420 · 4 comments · 2 assignees ·
Maintainers usually reply within 1 day
-
[tests]: are "rda file made when indicated" tests needed for every plot?Possibly taken @Schiano-NOAA claimed this 4 days ago. Openquestion
nmfs-ost/stockplotr#418 · 10 comments · 3 assignees ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 40/100
nmfs-ost/stockplotr#415 ·
Maintainers usually reply within 1 day
All issues in nmfs-ost/stockplotr
Similar issues
-
gdsa opencode: keep-alive cleanup trap fails with 'keepalive_pid: unbound variable'Possibly taken @darribas claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
sportsdataverse/sportyR#76 ·
Maintainers usually reply within 1 day
-
Consistency :green_apple: :apple: Docs :books:
Difficulty 1/5 Under an hour Newbie friendliness 72/100
easystats/performance#987 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
HelenaLC/spatialdataR#284 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 71/100