dynamicTicks = T does not respect position attribute in geom_point()
未关闭
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
I would like to use the dynamic ticks option with my plots in shiny although I am running into an issue with my plots that use a discrete x axis.
Plots appear as they should with dynamicTicks = F, however, after setting to TRUE the position = argument doesn't seem to be respected.
Furthermore, I notice that when using plotly_json() that some of the data items seem to go missing.
Any help with this issue would be much appreciated.
library(tidyverse)
library(plotly)
g <- mtcars %>%
ggplot(aes(fill = as_factor(carb))) +
geom_point(aes(x = as_factor(cyl), y = mpg), position = position_dodge(width = 0.5))
p <- ggplotly(dynamicTicks = T)
p
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提供的 R 复现开始,使用 ggplotly(dynamicTicks = T)、geom_point()、离散 x 轴和 position_dodge()。将其渲染后的图与 dynamicTicks = F 进行比较,并检查 plotly_json() 是否存在缺失数据;当 position 属性得到遵守且所有预期的数据项仍然存在时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100