[Bug]: `ref_line="unfished"` not working with ` plot_spawning_biomass` with `example_data`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- r
调研方向
Start by tracing how plot_spawning_biomass handles ref_line="unfished" and how convert_output maps SSB_virgin and SSB_unfished for SS3 models, especially in the DERIVED_QUANTITIES module. Compare the duplicate spawning_biomass_unfished entries in example_data and check related plotting tests. Done means the unfished reference line appears as expected without conflating quantities that may differ in complex models.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When running plot_spawning_biomass(example_data, ref_line="unfished"), no unfished reference point is added to the ensuing plot (note that the function does NOT throw an error, it just doesn't plot the expected reference).
Describe how to reproduce the bug
No response
Screenshots
No response
Which OS are you seeing the problem on?
No response
Which version of stockplotr are you seeing the problem on?
No response
Additional Context
From some sleuthing, this is due to there being multiple entries of "spawning_biomass_unfished" in the example_data dataset (at least for the "DERIVED_QUANTITIES" module name). convert_output is mapping both "SSB_virgin" and "SSB_unfished" to the label "spawning_biomass_unfished" for SS3 models. It is debatable whether these quantities SHOULD be interpreted as the same (they have the same estimated value in the example_data, though different uncertainties, and the SS3 manual notes that they may differ for complex models with time varying parameters).
- 主要语言
- R
- 星标
- 20
- 派生
- 10
- 平均合并
- 3 天 8 小时
- 30 天内合并 PR
- 31
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nmfs-ost/stockplotr 的其他 Issue
-
enhancement
难度 4/5 3-5 天 新手友好度 54/100
nmfs-ost/stockplotr#471 ·
维护者通常 1 天内回复
-
Address R cmd check warnings可能已有人在做 @sbreitbart-NOAA 于 4 天前认领。 未关闭
nmfs-ost/stockplotr#459 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[refactor]: merge multiple models into singular file for standard output可能已有人在做 @JZahner1 于 1 天前认领。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 48/100
nmfs-ost/stockplotr#457 · 17 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Check for obs and exp. for each example data in the package可能已有人在做 @Schiano-NOAA 于 5 天前认领。 未关闭question
nmfs-ost/stockplotr#452 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Add make_rda and rda bundle to composition plots可能已有人在做 @Schiano-NOAA 于 5 天前认领。 未关闭development enhancement
nmfs-ost/stockplotr#451 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 nmfs-ost/stockplotr 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 85/100
nf-core/nanostring#195 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
bgreenwell/pdp#140 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 87/100
-
upkeep
难度 2/5 1-3 小时 新手友好度 64/100
tidyverse/ellmer#1220 · 1 条评论 ·
维护者通常 4 天内回复
-
status:fix-merged
难度 2/5 1-3 小时 新手友好度 76/100
ichirio/rtfreporter#928 ·
维护者通常 1 天内回复