ggplotly doesn't handle group aesthetic of geom_ribbon
未关闭
还没有人认领这个 Issue。
bug
ggplotly
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
When using geom_ribbon with only the group aesthetic, ggplotly seems to simply merge everything. Semitransparent ribbons, which should appear darker in the overlap region, are therefore indistinguishable.
reprex:
x <- 1:10
ymin1 <- x - 1
ymax1 <- x + 1
ymin2 <- x
ymax2 <- x + 2
p <- ggplot(data.frame(group=rep(c(1,2), each=10), x=rep(x, 2), ymin=c(ymin1, ymin2), ymax=c(ymax1, ymax2)), aes(x=x, group=group)) +
geom_ribbon(aes(ymin=ymin, ymax=ymax), alpha=0.5)
p


Created on 2018-09-20 by the reprex package (v0.2.1.9000)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提供的 R reprex 开始,比较仅使用 group aesthetic 时 geom_ribbon 的 ggplot2 结果与 ggplotly 结果。跟踪 ggplotly 入口点,并确定两个带状区域为何会合并;当半透明重叠部分像静态图一样明显变暗时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100