plotly / plotly/plotly.R

geom_GeomContourFilled() not implemented in plotly

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

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

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

説明

Hi,

Geom_contour_filled() is not supported by plotly.

Brief reproducable example below


library(ggplot2)

df <- tibble(x = c(0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5),
        y = c(40, 40, 40, 40, 40, 40, 20, 20, 20, 20, 20, 20, 0, 0, 0, 0, 0, 0, -20, -20, -20, -20, -20, -20, -40, -40, -40, -40, -40, -40, -60, -60, -60, -60, -60, -60),
            z = c(52.25, 49.38, 48.31, 46.17, 44, 43, 45.75, 44.22, 43.19, 41.16, 40.2, 39.6, 40.13, 39.21, 38.26, 
              36.39, 36.2, 36, 35, 34.5, 33.65, 32.81, 32.6, 31.97, 31.25, 30.35, 30.3, 30, 28.5, 27, 26.62, 26.2, 25.99, 24, 21.5, 17.23))

# This works well
p <- ggplot(df, aes(x = x, y = y)) +
      geom_contour_filled(aes(z = z, fill = stat(level_mid))) +
  scale_fill_viridis_b()

# However it doesn't work with ggplotly:
ggplotly(p)

Warning message:
In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomContourFilled() has yet to be implemented in plotly.

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

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

はじめの一歩

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

調査の方向性

まず再現可能な ggplot2 の例を実行し、ggplotly(p) を呼び出して geom_GeomContourFilled() の警告を確認します。ggplotly が等高線レイヤーをどのように処理するかを追跡します。塗りつぶし等高線がその警告なしでサポートされ、例が plotly を通じてレンダリングされれば完了です。

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

評価

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

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

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