Implementation of facet_wrap(..., dir="v")
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
ggplot2 has the dir option that allows facets to be filled by columns, rather than rows. However, it does not display properly in plotly.
library(ggplot2)
library(plotly)
data <- data.frame(
x = seq(1:100),
y = sample(1:1000, 100),
z = factor(sample(1:4, 100, replace = T))
)
plot <- ggplot(data, aes(x, y)) +
facet_wrap(~ z, dir = "v") +
geom_point()
plot
ggplotly(plot)
ggplot works properly and fills the facets from top to bottom, left to right.

Using the current dev version of plotly, ggplotly doesn't display all the facets, and still orders them from left to right, top to bottom.

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
Beginne damit, das R-Beispiel des Issues mit facet_wrap(~ z, dir = "v") und ggplotly(plot) auszuführen, und verfolge anschließend, wie ggplotly das Facet-Layout und die Reihenfolge umwandelt. Vergleiche das Ergebnis mit dem Layout von ggplot von oben nach unten und von links nach rechts; als erledigt gilt die Aufgabe, wenn alle Facets in der angeforderten vertikalen Reihenfolge angezeigt werden.
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
- 42/100