[R] Boxplot Help Needed

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Mar 7 11:32:03 CET 2006


Sumanta Basak wrote:

> Hi R-Experts,
> 
>  
> 
> How can I show all the relevant measures like mean, median, min. value,
> max. value, outlier in a single boxplot diagram?
> 
>  
> 
> Suppose I have a data set  c(2,4,5,7,12,14,15,13,8,5,23,98,11)

Your e-mail address suggests this is not a homework question?
Please read the manuals and the posting guide. You will certainly find 
some experts who are willing to give an R course for your company, btw.

In this case, reading ?boxplot should have helped:

x <- c(2,4,5,7,12,14,15,13,8,5,23,98,11)
boxplot(x)
# we need to add the mean, as requested:
points(1, mean(x), pch=16, col="red")

Uwe Ligges


>  
> 
> Sumanta Basak.
> 
>  
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list