plotly / plotly/plotly.R

ggplotly() does not render empty plots from qplot() grid

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

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

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

説明

Trying to run a 3x3 qplot() grid through ggplotly()—qplot() renders a fine static plot:

library(plotly)

mtcars$gear <- factor(mtcars$gear,levels=c(3,4,5),
  	labels=c("3gears","4gears","5gears")) 
mtcars$am <- factor(mtcars$am,levels=c(0,1),
  	labels=c("Automatic","Manual")) 
mtcars$cyl <- factor(mtcars$cyl,levels=c(4,6,8),
   labels=c("4cyl","6cyl","8cyl")) 

qplot(hp, mpg, data=mtcars, shape=am, color=am, 
           facets=gear~cyl, size=I(3), 
           xlab="Horsepower", ylab="Miles per Gallon")

screen shot 2018-06-25 at 5 50 19 pm

But then when run through ggplotly(), the mid-right plot isn't rendered:

ggplotly(qplot(hp, mpg, data=mtcars, shape=am, color=am, 
           facets=gear~cyl, size=I(3), 
           xlab="Horsepower", ylab="Miles per Gallon"))

screen shot 2018-06-25 at 5 49 49 pm

Is this a bug or expected? Any suggestions on a way to force it to show up?

Thanks.

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

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

はじめの一歩

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

調査の方向性

提供された qplot() と ggplotly() の例を、mtcars データとその gear-by-cylinder の 3x3 ファセットを使って再現します。ggplotly() の変換パスから始めて、静的出力とインタラクティブ出力を比較します。完了の条件は、空のパネルを含むすべてのファセットが一貫してレンダリングされること、またはその挙動が想定どおりに文書化されていることです。

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

評価

技術スタック
r
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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