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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…