R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- array(list(77.87,69.14,65.4,39.21,66.38,75.09,43.05,56.03,32.86,51.36,38.95,42.58,38.71,32.37,48.34,38.31,41.21,37.39,31.8,41.18,34.48,40.86,37.3,23.24,40.1,34.02,35.06,31.43,23.22,38.94,23.29,33.19,30.11,22.2,34.02,22.87,29.72,29.89,20.81,33.04,22.27,29.15,25.01,12.58,32.98,22.23,22.55,22.56,9.85,31.25,20.47,19.39,22.06,5.23,30.46,19.11,18.58,21.88,5.04,28.23,17.67,17.14,20.11,2.83,23.77,16.2,16.55,18.87,1.85,22.69,0,0,0,0.38,0),dim=c(5,15),dimnames=list(c('2007','2006','2005','2004','2003'),1:15)) > y <- array(NA,dim=c(5,15),dimnames=list(c('2007','2006','2005','2004','2003'),1:15)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'grey' > ylab = 'value' > xlab = 'variables' > main = 'Notched Boxplots' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/1he7l1260442793.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > (r<-boxplot(z ,xlab=xlab,ylab=ylab,main=main,notch=TRUE,col=par1)) $stats [,1] [,2] [,3] [,4] [,5] [1,] 0.000 0.000 0.000 0.380 22.690 [2,] 19.790 18.985 21.970 5.135 29.345 [3,] 22.870 29.720 29.890 20.810 33.040 [4,] 36.395 41.035 37.345 27.520 40.640 [5,] 38.950 69.140 56.030 39.210 51.360 $n [1] 15 15 15 15 15 $conf [,1] [,2] [,3] [,4] [,5] [1,] 16.09592 20.72461 23.61770 11.67794 28.43216 [2,] 29.64408 38.71539 36.16230 29.94206 37.64784 $out [1] 77.87 75.09 65.40 66.38 0.00 $group [1] 1 1 3 5 5 $names [1] "2007" "2006" "2005" "2004" "2003" Warning message: In bxp(list(stats = c(0, 19.79, 22.87, 36.395, 38.95, 0, 18.985, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/overview.htm','Boxplot statistics','Boxplot overview'),6,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Variable',1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/lower_whisker.htm','lower whisker','definition of lower whisker'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/lower_hinge.htm','lower hinge','definition of lower hinge'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/central_tendency.htm','median','definitions about measures of central tendency'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/upper_hinge.htm','upper hinge','definition of upper hinge'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/upper_whisker.htm','upper whisker','definition of upper whisker'),1,TRUE) > a<-table.row.end(a) > for (i in 1:length(y[,1])) + { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],1,TRUE) + for (j in 1:5) + { + a<-table.element(a,r$stats[j,i]) + } + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/2ed7r1260442793.tab") > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Boxplot Notches',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Variable',1,TRUE) > a<-table.element(a,'lower bound',1,TRUE) > a<-table.element(a,'median',1,TRUE) > a<-table.element(a,'upper bound',1,TRUE) > a<-table.row.end(a) > for (i in 1:length(y[,1])) + { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],1,TRUE) + a<-table.element(a,r$conf[1,i]) + a<-table.element(a,r$stats[3,i]) + a<-table.element(a,r$conf[2,i]) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/3ndjy1260442793.tab") > > system("convert tmp/1he7l1260442793.ps tmp/1he7l1260442793.png") > > > proc.time() user system elapsed 0.360 0.167 0.521