In ggplot2, I would like to have the whiskers extend to the min and max values for a data set and not show the outliers. I've found the method to hide the outliers but I have been unable to get the whiskers to extend to the min and max for each group.
a <- data.frame(group = "a", value = rnorm(10))
b <- data.frame(group = "b", value = rnorm(100))
c <- data.frame(group = "c", value = rnorm(1000))
data <- rbind(a, b, c)
ggplot(data, aes(x=group, y=value)) +
stat_boxplot(geom ='errorbar') +
geom_boxplot() #geom_boxplot(outlier.shape = NA)
Q: What is the correct way to setup ggplot2 boxplots so that the whiskers extend to the min and max?
See Question&Answers more detail:os