[R] boxplot knowing Q1, Q3, median, upper and lower whisker value

Peng, C cpeng.usm at gmail.com
Fri Sep 10 19:46:27 CEST 2010


 x=1:16
 S=summary(x)
 >S
   Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
   1.00    4.75    8.50    8.50   12.25   16.00 
>S[-4]
   Min. 1st Qu.  Median 3rd Qu.    Max. 
   1.00    4.75    8.50   12.25   16.00 
 par(mfrow=c(1,2))
 boxplot(S[-4])   # based on the summarized stats
 boxplot(x)         # based on the raw data
 
-- 
View this message in context: http://r.789695.n4.nabble.com/boxplot-knowing-Q1-Q3-median-upper-and-lower-whisker-value-tp2528571p2534818.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list