Trace is lost with animation, not all ids exist in the legend
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I couldn't find this issue here - copying it accordingly:
This issue arises when I have animated frames and the ids do not exist for all frames (particularly the first one). Here is a reproducible example:
dat = data.frame(f = rep(1:4, each = 10),
x = rep(1:5, 2*4),
y = rep(c(rep(1, 5), rep(2, 5)), 4),
id = rep(rep(LETTERS[1:2], each = 5), 4))
dat = dat[dat$id == "B" | dat$id == "A" & dat$f == 3,]
plot_ly(x = ~ x,
y = ~ y,colors = c("#FF0000","#0000FF")) %>%
add_lines(
data = group_by(dat, id, f),
frame = ~ f,
key = ~ id,
ids = ~ id,
color = ~ id)
Notice in frame 3 that the line at y = 2 disappears. I also get a warning:
Warning message:
In p$x$data[firstFrame] <- p$x$frames[[1]]$data :
number of items to replace is not a multiple of replacement length
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue にある再現可能な R の例を実行し、アニメーションフレーム、ids、最初のフレームがどのように組み立てられているかを調べます。y = 2 の線がフレーム 3 でも表示されたままになり、置換の長さに関する警告が表示されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100