Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option "notch" (and "notchwidth") to geom_boxplot #1241

Open
januz opened this issue Apr 19, 2018 · 0 comments
Open

Add option "notch" (and "notchwidth") to geom_boxplot #1241

januz opened this issue Apr 19, 2018 · 0 comments
Labels

Comments

@januz
Copy link

januz commented Apr 19, 2018

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants