Geometry does not show when using ggplotly function to convert ggplot plot
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
Geometry does not show when using ggplotly function to convert ggplot plot, but if I hover over where the geometry is supposed to be, a hover box shows. The following warning is also displayed. If this is not related to this warning, please let me know and I'll submit the question on Stack Overflow:
Warning message:
In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomLabel() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues
ganttplot <- ganttrify::ganttrify(
plot,
spots = plot,
by_date = TRUE,
exact_date = TRUE,
colour_palette = RColorBrewer::brewer.pal(8,"Set2"),
mark_years = TRUE,
hide_wp = TRUE,
month_number_label = FALSE,
month_date_label = TRUE,
x_axis_position = "bottom",
spot_fill = NA,
spot_size_text_relative = .8,
spot_fontface = "plain",
spot_border = NA,
) +
ggplot2::labs(title = "Test Plot")
ganttplot
plotly::ggplotly(ganttplot)


[sample_data.csv](https://github.com/plotly/plotly.R/files/12896318/sample_data.csv)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用 ggplotly 复现所提供的 R 示例,并检查关于 geom_GeomLabel() 的 geom2trace.default 警告。确定缺失的几何图形在转换过程中是如何表示的;当该几何图形能够在转换后的绘图中渲染且该警告不再适用时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100