Is there a straightforward way to remove the whiskers from a box-whisker-plot in ggplot2
in R
? I'd like to keep only the boxes themselves.
MWE:
library("ggplot2")
p <- ggplot(mtcars, aes(factor(cyl), mpg))
p + geom_boxplot(outlier.size = 0)
See Question&Answers more detail:os