Issue with marker size when using animated graph
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When attempting to size markers in an animated graph, the sizing is incorrect unless the data.frame is first ordered correctly.
In the example below the markers should:
- Increase in size, then decrease again
- Decrease in size, then increase again
- Decrease in size
- Increase in size
- Iterate between small and large
I think it may have something to do with a warning I get 'arrange_()' is deprecated as of dplyr 0.7.0
Please use 'arrange()' instead
I'm using dplyr 1.0.0 and plotly 4.9.2.1
# data
data <- data.frame(xaxis = rep(as.character(c(1:5)), each = 10),
yaxis = rep(c(1:5,5:1), 5),
size = c(
c(seq(1,10,2), seq(10,1,-2)),
c(seq(10,1,-2), seq(1,10,2)),
c(1:10),
c(10:1),
rep(c(1,10), 5)
),
frame = c(1:10)
)
# example 1, unordered
plot_ly(
data = data,
x = ~xaxis,
y = ~yaxis,
frame = ~frame,
type = 'scatter',
marker = list(size = ~size*10),
mode = 'markers'
)
# example 2, ordered
data <- data[order(data$frame),]
plot_ly(
data = data,
x = ~xaxis,
y = ~yaxis,
frame = ~frame,
type = 'scatter',
marker = list(size = ~size*10),
mode = 'markers'
)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供された R 再現コードを dplyr 1.0.0 と plotly 4.9.2.1 で実行し、次にアニメーション化されたマーカーのサイズ計算と、非推奨の arrange_() パスを追跡します。順序付けされていないデータが一覧にある 5 つのサイズパターンを生成し、関連する非推奨警告に対処できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- plotly, r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100