dynamicticks = T & faceting
オープン
まだ誰も着手していません。
bug
ggplotly
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Trying facet_wrap with a categorical y axis and dynamicTicks =TRUE ends in:
Error in tickvals - val : non-numeric argument to binary operator
ggplot is OK, only ggplotly returns the problem
Ideas?
db <- data_frame(
x = c("a1", "b", "c1", "a2", "b", "c2"),
Var = c("a", "a", "a", "b", "b", "b"),
n = c(70, 50, 30, 30, 50, 70)
)
p <- db %>%
ggplot(aes(x = reorder(x,n), y = n)) +
geom_col() +
coord_flip() +
facet_wrap(~Var, scales = "free")
p
ggplotly(p, dynamicTicks = TRUE)
Now, if you wonder why I want to use dynamicTicks in the first place, see this example:
db <- data_frame(
s = paste0(sample(LETTERS, 2000, replace = T), sample(LETTERS, 2000, replace = T)),
x = sample(s[1:100], 2000, replace = T)
)
db %>% count(x, sort = T) %>%
ggplot(aes(x = reorder(x,n), y = n)) +
geom_col() +
coord_flip()
ggplotly(dynamicTicks = TRUE)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、報告された R の例を ggplotly()、dynamicTicks = TRUE、facet_wrap()、カテゴリ軸、coord_flip() とともに実行します。数値ではない引数のエラーを発生させる tick の処理を追跡します。faceted plot がエラーなしで描画され、カテゴリ軸で動的な tick が機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100