plotly / plotly/plotly.R

Empty facets when using subplot on multiple facet plots with shareX = TRUE

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

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

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

説明

When running the code below, the first subplot produces 4 empty facets in the two plotlys while the latter produces no empty facets (expected). I notice that the third and fourth xaxis x3 and x4 do not exist in the plotly object xaxis property in $x$data. It seems to be hard capped at two such that the traces intended for the >2 facets are accumulated into the second facet (x2)

library(tidyverse)
library(plotly)
facet_plot <- ggplotly(
  tibble(x = rnorm(75), y = rnorm(75), type = rep(LETTERS[1:3], 25)) %>%
    ggplot(aes(x, y)) + geom_point() + facet_wrap(~ type))
subplot(facet_plot, facet_plot, nrows = 2, shareX = TRUE)
subplot(facet_plot, facet_plot, nrows = 2)

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

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

はじめの一歩

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

調査の方向性

まず、2つのファセットプロットを含む再現可能なRの例を実行し、Xを共有するサブプロットとXを共有しないサブプロットの結果を比較します。plotlyオブジェクトのx$data xaxisエントリ、特にx3とx4を調べます。共有サブプロットがすべてのファセット軸を保持し、空のファセットが表示されなければ完了です。

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

評価

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

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

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