handle POSIXct frames
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Führe zunächst das bereitgestellte R-Beispiel mit plot_ly, POSIXct t1 frames und der POSIXct t2 y-Achse aus, um die fehlerhafte Animation zu reproduzieren. Verfolge, wie der frame in numerisch konvertiert wird, und überprüfe, dass die POSIXct t2 y-Achse während der Animation weiterhin verwendbar bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100