Translate plotmath expressions
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 2 issues using function ggplotly in R:
Question 1 What are the ways to keep R plotmath expressions while converting ggplot2 plots to plotly format using function ggplotly?
Now the expressions are converted to [object Object] as in this example below:
library(ggplot2)
library(plotly)
qplot(mpg, wt, data = mtcars) +
ggtitle(expression(bar(x) == sum(frac(x[i], n), i==1, n)))
ggplotly()
Question 2
How to get rid of double labels in the legend of plotly graph and make them look like in ggplot2 graph? I.e. how to get 6 in stead of (6,6):
qplot(mpg, wt, data = mtcars, colour = as.factor(cyl), fill = as.factor(cyl))
ggplotly()
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 damit, beide gemeldeten Beispiele mit ggplot2 und ggplotly nachzustellen: Der plotmath-Titel wird zu [object Object], und die Legende zeigt duplizierte Werte wie (6,6). Verfolge, wie ggplotly plotmath-Ausdrücke und kombinierte colour/fill-Skalen konvertiert, und überprüfe anschließend, dass Ausdrücke korrekt gerendert werden und die Legendeneinträge dem ggplot2-Ergebnis entsprechen.
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
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100



