ggplotly() to show geom_ribbon() with only upper and lower bounds strokes
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
In the latest ggplto2 release, geom_ribbon() can only stroke the upper and lower bounds and I'm wondering whether it is possible for the ggplot-converted plotly graphic to also have this feature?
A small code to play around with:
library(ggplot2)
library(plotly)
#>
#> Attaching package: 'plotly'
#> The following object is masked from 'package:ggplot2':
#>
#> last_plot
#> The following object is masked from 'package:stats':
#>
#> filter
#> The following object is masked from 'package:graphics':
#>
#> layout
huron <- data.frame(year = 1875:1972, level = as.vector(LakeHuron))
p1 <- ggplot(huron, aes(year)) +
geom_ribbon(aes(ymin = level - 10, ymax = level + 10), fill = "grey", colour = "black")
p1

ggplotly(p1)

Created on 2022-02-18 by the reprex package (v2.0.1)
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ühren Sie zunächst das mitgelieferte LakeHuron-Beispiel mit ggplot2 und ggplotly aus und verfolgen Sie anschließend, wie geom_ribbon() konvertiert wird. Vergleichen Sie die Quellgrafiken mit den konvertierten Grafiken und überprüfen Sie, dass die resultierende Grafik Striche nur an den oberen und unteren Begrenzungen beibehält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100