[R] Boxplot Help Needed

michael watson (IAH-C) michael.watson at bbsrc.ac.uk
Tue Mar 7 11:22:31 CET 2006


You can always use points()

mat <- matrix(rnorm(360),nrow=10)
boxplot(mat~col(mat))
means <- apply(mat,2, mean)
points(1:36,means,pch="X",col="red") 

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Sumanta Basak
Sent: 07 March 2006 09:55
To: r-help at stat.math.ethz.ch
Subject: [R] Boxplot Help Needed

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)

 

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