plotly / plotly/plotly.R

Alpha from stat_summary_2d ignored

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

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

ggplotly does not carry over the alpha level for stat_summary_2d. Seems like it may be similar to the same issue that occurred with points in a previous version.

This isn't as obvious in the reproducible example, but for regions where the map isn't just water, and the locations are more dense, having the alpha allows for a visible basemap.

fiji <-  get_googlemap("Fiji", zoom = 5, maptype = "roadmap", color = "bw", size = c(640, 480), scale = 2)

ggplotly({
  ggmap(fiji, extent = "device") + 
  stat_summary_2d(data = quakes, aes(x = long, y = lat, z = mag), alpha = .55 , fun = mean, bins = 100) +
  scale_fill_gradient(name = "Fullness", low = "green", high = "red")
  }, tooltip = "fill"
)

ggplot2 output:
image

plotly output:
screen shot 2018-12-06 at 12 10 54 pm

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 dem reproduzierbaren R-Beispiel im Issue und vergleichen Sie die ggplot2- und plotly-Ausgaben, wobei der Fokus auf stat_summary_2d und seiner alpha-Einstellung liegt. Verfolgen Sie den Konvertierungspfad für diese Ebene und überprüfen Sie das Ergebnis, indem Sie bestätigen, dass die plotly-Ausgabe die angeforderte Transparenz über der Basiskarte beibehält.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
plotly, 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
42/100

Neue Issues direkt in Ihr Postfach

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