Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add composition plots for diagnostics etc

未关闭
#422 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
r

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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)

主要语言
R
星标
20
派生
9
平均合并
1 天 5 小时
30 天内合并 PR
12

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nmfs-ost/stockplotr 的其他 Issue

查看 nmfs-ost/stockplotr 的全部 Issue

相似的 Issue

更多 R Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。