Converting geom_tile's stroke
Offen
Dieses Issue hat noch niemand übernommen.
ggplotly
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
While this bug is "small", it is effecting heatmaply behavior so a fix would be very helpful.
Following is a reproducible example with the plots of ggplot2 and plotly:
df <- data.frame(
x = rep(c(2, 5, 7, 9, 12), 2),
y = rep(c(1, 2), each = 5),
w = rep(diff(c(0, 4, 6, 8, 10, 14)), 2)
)
p <- ggplot(df, aes(x, y)) +
geom_tile(aes(fill = w), colour = "grey50", size = 2) +
theme_bw()
p
ggplotly(p)
ggplot2:

plotly (notice the grey borders are missing)

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 mit dem reproduzierbaren R-Beispiel im Issue und vergleiche die ggplot2- und plotly-Ausgaben, wobei du dich auf die Einstellungen für Farbe und Größe von geom_tile konzentrierst. Verfolge den Einstiegspunkt der ggplotly-Konvertierung für geom_tile; fertig ist die Aufgabe, wenn die grauen Kachelränder in der plotly-Ausgabe wie in ggplot2 erscheinen.
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
- 38/100