ggplotly legend problem when apply on line plot with error bars
未关闭
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi Plotly developer,
a=ggplot(new_to_plot, aes(x=days, y=value,color = cohort)) +
geom_errorbar(aes(ymin=value-se, ymax=value+se), width=.1,position=pd) +
geom_line(position=pd) +
geom_point(size=2) + xlab(xlabel)+ylab(ylabel)+ggtitle(title)
ggplotly(a)
The legend only shows characters without any lines or points and error bars. Please advise

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 ggplotly(a) 重现提供的 R 示例,重点关注为 geom_errorbar、geom_line 和 geom_point 生成的图例。未指定源文件或测试;完成的标准是图例显示相应的线、点和误差条,而不只是字符,并在现有项目测试该转换的地方添加回归检查。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 28/100