handle POSIXct frames
Nessuno ha ancora preso questa issue.
- Lingua principale
- R
- Stelle
- 2.7k
- Fork
- 641
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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!
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia eseguendo l’esempio R fornito con plot_ly, i frames POSIXct t1 e l’asse y POSIXct t2 per riprodurre l’animazione malformata. Traccia come il frame viene convertito in numerico e verifica che l’asse y POSIXct t2 rimanga utilizzabile durante l’animazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- r
- Ambito
- data-visualization
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100