handle POSIXct frames
オープン
まだ誰も着手していません。
difficulty: high
priority: medium
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
plot_ly exhibits strange behavior when trying to loop over a POSIXct variable in an animation. POSIXct variables are handled fine as the axes of a non-animating plot_ly, so I was hoping they would be supported as frames.
It seems the frame is turned into a numeric, which makes sense. However, a POSIXct y axis seems to be mutated beyond use when using a POSIXct frame.
library(plotly)
data <- data.frame(x = 1:100,
t1 = rep(seq.POSIXt(as.POSIXct("2018-04-01"), as.POSIXct("2018-04-10"), length.out = 10), 10),
t2 = seq.POSIXt(as.POSIXct("2018-05-01"), as.POSIXct("2018-05-10"), length.out = 100))
data %>%
plot_ly(x = ~x, y = ~t2, frame = ~t1) %>%
add_markers()

Thank you for providing this great capability, and I am excited about the potential for Plotly animations as well!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、plot_ly、POSIXct t1 frames、および POSIXct t2 y 軸を使用した提供済みの R 例を実行し、壊れたアニメーションを再現します。frame が numeric に変換される方法を追跡し、アニメーション中も POSIXct t2 y 軸が引き続き使用可能であることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100