Call for feature: supporting of expressions
未关闭
还没有人认领这个 Issue。
difficulty: high
ggplotly
priority: low
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
When I try use expression object as lab labels, ggplotly raises an error.
p <- ggplot(data=de$table, aes(x=logFC, y=-log10(PValue), colour=threshold)) +
geom_point(size=1.75, alpha = 0.4) +
# ylim(c(0, input$ylmslider)) +
xlab(expression("log"[2]*"(Fold Change)")) + ylab(expression("-log"[10]*"(p-value)")) +
geom_vline(xintercept = 0, colour = "grey",
linetype = "dashed", size = 2) + # add line at 0
geom_hline(yintercept = -log10(0.05), colour = "grey",
linetype = "dashed", size = 2) + theme(legend.position = "none") # p(0.05) = 1.3
#> Everything is ok up to now
ggplotly(p)
#> Error in unique.default(x) : unimplemented type 'expression' in 'HashTableSetup'
You can reproduce this scenario by using any expression as axis titles.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用提供的 ggplotly 示例和 expression 轴标题重现该问题。跟踪 ggplotly 如何处理这些标签,然后验证同一图形能够在不出现 HashTableSetup 错误的情况下完成转换,并且 expression 标签得到保留。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100