plotly / plotly/plotly.R

ggplotly doesn't handle group aesthetic of geom_ribbon

オープン
#1,340 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug ggplotly
主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

When using geom_ribbon with only the group aesthetic, ggplotly seems to simply merge everything. Semitransparent ribbons, which should appear darker in the overlap region, are therefore indistinguishable.

reprex:

x <- 1:10
ymin1 <- x - 1
ymax1 <- x + 1
ymin2 <- x
ymax2 <- x + 2
p <- ggplot(data.frame(group=rep(c(1,2), each=10), x=rep(x, 2), ymin=c(ymin1, ymin2), ymax=c(ymax1, ymax2)), aes(x=x, group=group)) +
    geom_ribbon(aes(ymin=ymin, ymax=ymax), alpha=0.5)
p


Created on 2018-09-20 by the reprex package (v0.2.1.9000)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供された R reprex から始め、group aesthetic のみを使用した geom_ribbon について、ggplot2 の結果と ggplotly の結果を比較します。ggplotly のエントリポイントを追跡し、2 つのリボンが結合される理由を特定します。静的プロットと同様に、半透明の重なりが目に見えて濃くなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
r
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。