plotly / plotly/plotly.R

geom_GeomCircle() has yet to be implemented in plotly.

未关闭
#1,995 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
R
星标
2.7k
派生
641
PR 合并指标
30 天内没有已合并 PR

描述

Hello,

In short, plotly currently doesn't support geom_circle(), and it would be great to be able to do so.

In this example, I am making a plot of several overlapping circles corresponding to their variable number's size (in this case, tonnes of carbon). It would be great to use plotly to create a hover function that displays each circle's total number of tonnes, for easy reading by the user. I would like to use renderPlotly({}) instead of renderPlot({}) in the following example.

Thanks!

output$carbon_stores_summary_plot <- renderPlot({

        ggplot(data = carbon_data)+
          coord_fixed()+
          geom_circle(aes(x0 = 0, y0 = 1,
                          r = 1),
                      fill = "#7ECBEF",
                      color = NA,
                      n = 10000)+
          geom_circle(aes(x0 = 0, y0 = V/B,
                          r = V/B),
                      fill = "#357D57",
                      color = NA,
                      n = 5000)+
          geom_circle(aes(x0 = 0, y0 = I/B,
                          r = I/B),
                      fill = "#8c007a",
                      color = NA,
                      n = 5000)+
          theme_void()
})

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从提供的 geom_circle 示例开始,比较 plotly.R 中当前的 renderPlot 和 renderPlotly 路径。确定应如何表示圆、圆的大小以及请求的 hover 值;当重叠的圆通过 renderPlotly 渲染,并向用户展示每个圆的总值时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
r
领域
data-visualization
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
基本清楚
新手友好度
32/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。