plotly / plotly/plotly.R

unexpected results using ggplotly and geom_dotplot()

Offen
#1,213 2 Kommentare 4 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

Hello! Thank you so much for your work on this great package.

I am having some trouble getting dot plots to work with plotly. For example, take a look at the following example from the documentation for geom_dotplot().

library(ggplot2)

p <- ggplot(mtcars, aes(x = factor(cyl), y = mpg)) +
  geom_dotplot(binaxis = "y", stackdir = "center")

p
#> `stat_bindot()` using `bins = 30`. Pick better value with `binwidth`.

Created on 2018-03-07 by the reprex package (v0.2.0).

When I then try to render this with plotly:

library(plotly)
ggplotly(p)

I get a blank plot.

rplot

I am getting lots of weird problems like this with my real data as well.

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 verwenden Sie ggplot2s geom_dotplot() sowie plotlys ggplotly(), um den Quellplot mit der leeren Ausgabe zu vergleichen. Erledigt ist die Aufgabe, wenn der bereitgestellte Dotplot korrekt über ggplotly gerendert wird; im Bericht wird keine Repository-Datei und kein Test identifiziert.

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
35/100

Neue Issues direkt in Ihr Postfach

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