dynamicTick = TRUE returns error when the ggplot has a facet_grid function
オープン
まだ誰も着手していません。
bug
ggplotly
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Package version: plotly - 4.7.1, ggplot - 3.0.0.9000
I need to use the dynamicTick = TRUE parameter of ggplotly so that the y axis scale can be updated automatically after zoom in/out. But it does not seem to work when I have a facet_grid component in the ggplot.
Here is a quick example:
## generate random data
x = c(rep("2010", n = 10), rep("2011", n = 10), rep("2012", n = 10), rep("2013", n = 10), rep("2014", n = 10))
y = c(rnorm(n = 50))
z = c(rep("A", n = 25), rep("B", n = 25))
df = data.frame("year" = x, "value" = y, "cat" = z, stringsAsFactors = FALSE)
## create ggplot
ggplot(data = df, aes(x = year, y = value)) +
geom_point(size = 2) +
facet_grid(~cat) +
theme_bw()
## ggplotly()
ggplotly(dynamicTicks = TRUE)
Any help or suggestions of workaround would be appreciated.
Thanks!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、ggplotly と dynamicTicks を有効にした状態で、提供されている R の例を実行し、続いて facet_grid プロットの処理と動的な目盛りの更新を追跡します。完了条件は、ファセット化されたプロットでエラーが発生しなくなり、ズームインまたはズームアウトした後に y 軸のスケールが更新されることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100