ggplotly() ignores function applied to fill labels
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When passing a function to the labels argument of scale_fill_discrete(), ggplotly() does not apply this function to the labels. This works fine, however, when passing the same function to scale_x_discrete().
df <- data.frame(a = c("A", "B"), b = c(7, 9))
p <- ggplot(df, aes(a, b, fill = a)) +
geom_col() +
scale_x_discrete(labels = tolower) +
scale_fill_discrete(labels = tolower)
p

plotly::ggplotly(p)

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供されている R の例を ggplotly() で実行し、scale_fill_discrete(labels = tolower) の結果と scale_x_discrete(labels = tolower) の結果を比較します。ggplotly() がこれら 2 つのスケールのエントリポイントをどのように処理するかを追跡します。インタラクティブなプロットで、x ラベルと同じように fill ラベルが指定された関数によって変換されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 50/100