geom_GeomCircle() has yet to be implemented in plotly.
未關閉
還沒有人認領這個 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()
})
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從提供的 geom_circle 範例開始,並比較 plotly.R 中目前的 renderPlot 和 renderPlotly 路徑。確定圓形、其大小以及要求的 hover 值應如何表示;當重疊的圓形透過 renderPlotly 繪製,並向使用者呈現每個圓形的總值時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- r
- 領域
- data-visualization
- Issue 類型
- 功能
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 32/100