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(76.21,80.8,87.78,86.66,87.37,73.21,75.32,75.13,72.05,80.27,68.4,68.7,69.17,62.68,72.4,66.92,68.47,66.93,56.87,60.62,63.87,63.56,62.91,55.34,50,62.47,63.33,61.21,51.24,49.94,52.33,62.13,60.38,45.94,41.67,51.58,60.08,47.89,41.64,38,50.43,52.74,40.68,41.02,37.87,33.46,40.97,40.35,40.97,37.08,30.17,34.14,39.07,32.96,36.42,25.02,27.53,28.33,28.79,31.85,24.83,24.84,24.09,27.41,27.4,15.52,21.93,19.85,20.06,19.35,0,15.93,15.48,15.92,16.45),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/1e8401260445980.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 15.930 15.48 15.920 16.450 [2,] 27.595 30.835 33.70 30.875 34.135 [3,] 51.580 60.080 47.89 41.640 38.000 [4,] 65.395 66.015 64.92 56.105 55.310 [5,] 76.210 80.800 87.78 86.660 80.270 $n [1] 15 15 15 15 15 $conf [,1] [,2] [,3] [,4] [,5] [1,] 36.15933 45.72817 35.15367 31.34731 29.36157 [2,] 67.00067 74.43183 60.62633 51.93269 46.63843 $out [1] 87.37 $group [1] 5 $names [1] "2007" "2006" "2005" "2004" "2003" Warning message: In bxp(list(stats = c(0, 27.595, 51.58, 65.395, 76.21, 15.93, 30.835, : 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/2c0h71260445980.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/3055d1260445981.tab") > > system("convert tmp/1e8401260445980.ps tmp/1e8401260445980.png") > > > proc.time() user system elapsed 0.388 0.164 0.886