dynamicTicks = TRUE with facet_wrap() and categorical axis
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
It seems that dynamicTicks=TRUE in ggplotly is working for categorical data only when the plot is not faceted. Is there a reason for that or is this part of the bug you were working on here: https://github.com/ropensci/plotly/issues/860?
library("ggplot2")
library("plotly")
p1 <- ggplot(mtcars) +
geom_line(aes(x=as.factor(hp), y=mpg, group=1))
p2 <- ggplot(mtcars) +
geom_line(aes(x=as.factor(hp), y=mpg, group=1)) +
facet_wrap(vars(gear))
#non faceted plot works
ggplotly(p1, dynamicTicks = TRUE)
#faceted plot does not work
ggplotly(p2, dynamicTicks = TRUE)
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 die bereitgestellten R-Beispiele für ggplotly() mit dynamicTicks=TRUE aus und vergleiche das nicht facettierte p1 mit der facet_wrap()-Version p2. Verfolge die Verarbeitung von dynamicTicks und facet_wrap() von diesem Einstiegspunkt aus; abgeschlossen ist die Aufgabe, wenn kategoriale Achsen im facettierten Plot dynamische Ticks konsistent wie im nicht facettierten Plot verwenden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100