ggplotly: geom_path interpretation of size
未关闭
还没有人认领这个 Issue。
bug
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
For a visualization I'm making thick curves as follows:
require(ggplot2)
require(plotly)
require(Hmisc)
len=100
edge=data.frame(bezier(x=c(0, 1, 2), y=c(0, 1, 0),evaluation = len))
edge$Sequence <- sin( seq(0,pi,length.out=len) )
gg = ggplot(edge,aes(x = x, y = y, size = Sequence)) + geom_path() + scale_size( range = c(.3, 20), guide = F) + theme_bw(base_size = 16) + ylim(0,.6) + scale_alpha(guide=F)
pl <- ggplotly(gg)
which in ggplot2 gives:

but which with ggplotly
pl <- ggplotly(gg)
gives

I think the problem is that ggplotly is assuming every different "size" should be considered as a separate path, whereas ggplot2 is not.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 ggplotly 重现所提供的 R 示例,并将其 geom_path 渲染与 ggplot2 进行比较。追踪 ggplotly 如何解释路径的可变 size aesthetic;当曲线保持为一条连续的路径且与 ggplot2 的结果一致时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100