marker size is incorrect when colouring / grouping variable is non-numeric
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The first two markers should be small, the next two large. Instead, the first and third are small, and the second and fourth are large:
plot_ly(type = "scatter", mode = "markers", x = 1:4, y = 1:4, marker = list(size = c(5, 5, 10, 10)), color = c("1", "2", "1", "2"))
Grouping on a numeric variable makes the bug disappear:
plot_ly(type = "scatter", mode = "markers", x = 1:4, y = 1:4, marker = list(size = c(5, 5, 10, 10)), color = c(1, 2, 1, 2))
I am running R 3.6.3 on RHEL 7.6 with plotly 4.9.2.1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ソースファイルもテストも指定されていません。まず issue にある両方の plot_ly の例を実行し、文字による色のグループ化と数値による色のグループ化がマーカーデータに変換される流れを追ってください。両方の場合でサイズの値が元の観測値との整合性を保ち、リグレッションテストのカバレッジが追加されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- plotly, r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100