Skip to content
Prev 255547 / 398506 Next

mean in the boxplot

On 2011-04-01 10:28, David Winsemius wrote:
Another option is to add the means as points after
plotting the boxplot with:

   boxplot(....)
   points(1:n, Means)

This is particularly useful if you want both the
medians and the means on the plot. If you don't
want the median line, you can get rid of it by
setting medcol="transparent" in the boxplot() call.

But then again, the whole point of a boxplot is to
represent general distributional shape for which
the median is surely more effective.

Peter Ehlers