dynamicticks = T & faceting
未关闭
还没有人认领这个 Issue。
bug
ggplotly
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Trying facet_wrap with a categorical y axis and dynamicTicks =TRUE ends in:
Error in tickvals - val : non-numeric argument to binary operator
ggplot is OK, only ggplotly returns the problem
Ideas?
db <- data_frame(
x = c("a1", "b", "c1", "a2", "b", "c2"),
Var = c("a", "a", "a", "b", "b", "b"),
n = c(70, 50, 30, 30, 50, 70)
)
p <- db %>%
ggplot(aes(x = reorder(x,n), y = n)) +
geom_col() +
coord_flip() +
facet_wrap(~Var, scales = "free")
p
ggplotly(p, dynamicTicks = TRUE)
Now, if you wonder why I want to use dynamicTicks in the first place, see this example:
db <- data_frame(
s = paste0(sample(LETTERS, 2000, replace = T), sample(LETTERS, 2000, replace = T)),
x = sample(s[1:100], 2000, replace = T)
)
db %>% count(x, sort = T) %>%
ggplot(aes(x = reorder(x,n), y = n)) +
geom_col() +
coord_flip()
ggplotly(dynamicTicks = TRUE)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 ggplotly()、dynamicTicks = TRUE、facet_wrap()、分类轴和 coord_flip() 运行报告中的 R 示例。跟踪产生非数值参数错误的刻度处理逻辑。当分面图能够在没有错误的情况下渲染,并且动态刻度能够用于分类轴时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100