Implementation of facet_wrap(..., dir="v")
オープン
まだ誰も着手していません。
ggplotly
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
ggplot2 has the dir option that allows facets to be filled by columns, rather than rows. However, it does not display properly in plotly.
library(ggplot2)
library(plotly)
data <- data.frame(
x = seq(1:100),
y = sample(1:1000, 100),
z = factor(sample(1:4, 100, replace = T))
)
plot <- ggplot(data, aes(x, y)) +
facet_wrap(~ z, dir = "v") +
geom_point()
plot
ggplotly(plot)
ggplot works properly and fills the facets from top to bottom, left to right.

Using the current dev version of plotly, ggplotly doesn't display all the facets, and still orders them from left to right, top to bottom.

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、facet_wrap(~ z, dir = "v") と ggplotly(plot) を使って issue の R 例を実行し、次に ggplotly が facet のレイアウトと順序をどのように変換するかを追跡します。結果を ggplot の上から下、左から右のレイアウトと比較します。すべての facet が要求された縦方向の順序で表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100