ggplotly not rendering geom_ribbon() correctly with NA values
オープン
まだ誰も着手していません。
bug
ggplotly
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
ggplotly() creates broken ribbons when there are NAs in the min or max values, although the ribbon is rendered correctly in ggplot alone.
This seems to be alluded to here but since that was 3 years ago I fear it may not be an open issue.
The below is sufficient to illustrate how the plots differ.
Thanks!
library(ggplot2); library(plotly); library(dplyr)
df = data.frame(x = 1:5, y = sin(1:5), min = sin(1:5) + 1, max = sin(1:5)-1) %>%
rbind(c(6,sin(6),NA, NA))
pl = ggplot(df, aes(x=x, y=y)) +
geom_line() +
geom_ribbon(aes(min = min, max = max))
pl
ggplotly(pl)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供された R の例を ggplot2 と plotly で実行し、最終的な min 値と max 値が NA の場合の ggplot と ggplotly の ribbon 出力を比較します。次に、geom_ribbon() に対する ggplotly の変換およびレンダリング経路を追跡し、その後、NA の境界を持つ ribbon が ggplot と一貫してレンダリングされることを、既存の非 NA 値に対する動作を維持しながら確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100