Plotly does not work with geom_chicklet
还没有人认领这个 Issue。
- 主要语言
- R
- 星标
- 2.7k
- 派生
- 641
- PR 合并指标
- 30 天内没有已合并 PR
描述
I make a lot of bar charts and prefer geom_chicklet over goem_col for presentations
library(ggplot2)
library(plotly)
library(scales)
p <- ggplot(aes(y = perc,
x = response,
fill = fill_color,
text = paste("Response:", response, "
Percent:", percent(perc)))) + # Tooltip content
geom_chicklet() +
coord_flip() +
scale_fill_identity() +
scale_y_continuous(labels = percent_format()) +
labs(title = "Barriers indicated by the survey: these are the reasons people say they don't vote",
y = paste("Percent of the", nrow(combined_surveys_english), "survey respondents"),
caption = "",
x = "") +
theme_colibri() +
theme(axis.text.y = element_text(color = "black", size = 10),
strip.text.y = element_text(angle = 0),
plot.title = element_text(size = 16),
legend.position = "none")
Convert to interactive plot
ggplotly(p, tooltip = "text")
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
报告未提供任何仓库文件或测试;首先使用 ggplotly(p, tooltip = "text") 重现所提供的 R 示例,并将其与标准的 geom_col 图表进行比较。跟踪 ggplotly 如何处理 geom_chicklet,并验证交互式图表是否能以所请求的文本 tooltip 进行渲染;该 issue 未指定首选的测试位置。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100