Multiple aestetics in scale_*_virids_d() not supported
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I tried to convert the following (simplified) ggplot2 object into a plotly object:
library(ggplot2)
library(plotly)
plot <- ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species, fill = Species)) +
geom_point() +
scale_fill_viridis_d(option = "viridis", aesthetics = c("colour", "fill"))
Using ggplotly(plot) throws the error
Error in
[[<-(*tmp*, sc$aesthetics, value = sc) : no such index at level 1
Separating the aesthetics works fine as does specifying only one argument in the "aesthetic" argument or writing a line for each aesthetic.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、colour と fill の両方の aesthetics を使用して、提供された R の例を ggplotly() と scale_fill_viridis_d() で再現します。そのエントリーポイントから変換を追跡し、複数の aesthetics がエラーを引き起こす理由を特定したうえで、single-aesthetic のケースと個別の scale のケースが引き続きサポートされる状態で、例が動作することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100