How to put Values on Boxplot in R for several boxplot in one image
问题 I want to plot Delta~Project.Types in R. I have 10 Project Types. I know how to do the boxplot : boxplot(Delta~Project.Types). However, how can I put the fivenum (min, max, 1st, 2nd, and 3rd quantile) on each boxplot? How can I do for that every boxplot of the image will have its five number shown? That would be easier to compare the boxplots when the values are shown Thanks! 回答1: The stats you want can also be obtained with fivenum five <- by(InsectSprays$count, InsectSprays$spray, fivenum)