Add support for geom_boxplot(stat="identity") in ggplotly or similar for plot_ly boxplot
還沒有人認領這個 Issue。
- 主要語言
- R
- 星號
- 2.7k
- 分支
- 641
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I'm using ggplot2 to create boxplots which I'd then like to make interactive by converting to a plotly object. What I need to be able to do however is use my own computed values for the min, max, lower, upper, and middle values of the boxplot. This is possible in ggplot by using stat="identity" in geom_boxplot() and setting the values within aes(). When I then pass the ggplot object to ggplotly however nothing renders, I just get an empty axis. I think this is because plotly tries to internally calculate the quartiles etc when converting the box plot (which it then can't do because I've not given it appropriate data).
Would it therefore be possible to add support for setting the boxplot values either through the ggplotly conversion or directly using a plot_ly() boxplot?
Thanks
p.s. a simple example of what I'd like to convert can be found at the end of the geom_boxplot documentation (http://docs.ggplot2.org/current/geom_boxplot.html).
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 issue 中連結的 geom_boxplot 文件範例開始,追蹤 ggplotly 如何處理使用 stat="identity" 的 ggplot 物件。將該路徑與 plot_ly() 對 boxplot 的支援進行比較。當 min、max、lower、upper 和 middle 的自訂值能透過所要求的方法之一呈現為非空的互動式 boxplot 時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- plotly, r
- 領域
- data-visualization
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100