plotly / plotly/plotly.R

implement geom_GeomMapTile()

Offen
#1,844 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
R
Sterne
2.7k
Forks
641
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I have an sf object that I plot with a basemap background, and I would like to plot it with ggplot and transform it to a ggplotly object.
Something like this:

library(ggplot)
library(ggspatial)
lubrary(sf)
library(plotly)
p <- ggplot() +
  annotation_map_tile(zoom = 7) + 
  geom_sf(data = SF_OBJECT)
ggplotly(p)

when I try to run this script, I dont get the basemap, and get the following warning:
'''r
Warning message:
In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomMapTile() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues
'''

I request the plotly developers to implement geom_GeomMapTile() .

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie mit der gemeldeten Warnung von geom_GeomMapTile() und reproduzieren Sie das bereitgestellte Beispiel mit ggplot, annotation_map_tile(), geom_sf() und ggplotly(). Als erledigt gilt die Aufgabe, wenn der Hintergrund der Kartentiles im resultierenden plotly-Objekt erhalten bleibt; das Issue nennt keine Repository-Dateien oder Tests, die die Implementierung anleiten könnten.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
r
Bereich
data-visualization
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.