Add option "notch" (and "notchwidth") to geom_boxplot
Offen
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
I would like to add notches to boxplots like it is possible in ggplot. The feature has recently been implemented for the plotly API (https://community.plot.ly/t/add-option-notch-to-box-plots/7396/3)
library(plotly)
set.seed(1234)
dat <- data.frame(cond = factor(rep(c("A","B"), each=200)), rating = c(rnorm(200),rnorm(200, mean=.8)))
p <- ggplot(dat, aes(x=cond, y=rating)) + geom_boxplot(notch = TRUE)
# ggplot shows notch
p
# ggplotly does not
ggplotly(p)
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, das R-Beispiel des Issues mit ggplot, geom_boxplot(notch = TRUE) und ggplotly(p) zu reproduzieren, und untersuche anschließend, wie plotly.R geom_boxplot umwandelt. Als erledigt gilt die Aufgabe, wenn ggplotly den Notch des Boxplots beibehält und notchwidth unterstützt, ohne den bestehenden Plot zu verlieren.
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