Add option "notch" (and "notchwidth") to geom_boxplot
Open
Nobody has claimed this yet.
ggplotly
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue's R example with ggplot, geom_boxplot(notch = TRUE), and ggplotly(p), then inspect how plotly.R converts geom_boxplot. Done means ggplotly preserves the boxplot notch and supports notchwidth without losing the existing plot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100