R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(34 + ,30 + ,24 + ,33 + ,28 + ,25 + ,29 + ,31 + ,12 + ,34 + ,35 + ,35 + ,32 + ,35 + ,35 + ,35 + ,37 + ,37 + ,41 + ,39 + ,27 + ,27 + ,31 + ,40 + ,40 + ,38 + ,40 + ,40 + ,37 + ,37 + ,36 + ,37 + ,42 + ,40 + ,35 + ,28 + ,43 + ,37 + ,37 + ,40 + ,42 + ,36 + ,33 + ,28 + ,37 + ,37 + ,37 + ,33 + ,32 + ,36 + ,40 + ,26 + ,37 + ,30 + ,36 + ,33 + ,36 + ,39 + ,40 + ,33 + ,38 + ,30 + ,40 + ,34 + ,36 + ,37 + ,35 + ,33 + ,26 + ,41 + ,40 + ,36 + ,42 + ,37 + ,39 + ,36 + ,37 + ,38 + ,39 + ,39 + ,34 + ,33 + ,35 + ,35 + ,33 + ,36 + ,41 + ,36 + ,34 + ,42 + ,37 + ,36 + ,36 + ,36 + ,32 + ,39 + ,34 + ,33 + ,33 + ,32 + ,27 + ,33 + ,35 + ,37 + ,36 + ,39 + ,32 + ,37 + ,30 + ,31 + ,32 + ,25 + ,31 + ,37 + ,29 + ,32 + ,25 + ,39 + ,37 + ,30 + ,31 + ,25 + ,37 + ,26 + ,30 + ,37 + ,28 + ,37 + ,40 + ,40 + ,37 + ,35 + ,32 + ,40 + ,35 + ,35 + ,35 + ,43 + ,32 + ,35 + ,32 + ,41 + ,43 + ,42 + ,34 + ,32 + ,35 + ,36 + ,42 + ,27 + ,38 + ,35 + ,30 + ,34 + ,27 + ,31 + ,32 + ,30 + ,36 + ,34 + ,31 + ,36 + ,32 + ,36 + ,41 + ,40 + ,36 + ,45 + ,43 + ,41 + ,36 + ,35 + ,34 + ,39 + ,45 + ,36 + ,31 + ,36 + ,33 + ,36 + ,39 + ,35 + ,36 + ,31 + ,28 + ,37 + ,36 + ,33 + ,40 + ,36 + ,38 + ,35 + ,37 + ,37 + ,36 + ,40 + ,39 + ,32 + ,35 + ,34 + ,36 + ,36 + ,32 + ,37 + ,32 + ,36 + ,42 + ,36 + ,36 + ,37 + ,37 + ,35 + ,36 + ,42 + ,33 + ,36 + ,37 + ,42 + ,33 + ,36 + ,36 + ,37 + ,36 + ,33 + ,35 + ,33 + ,36 + ,37 + ,37 + ,32 + ,28 + ,35 + ,35 + ,33 + ,37 + ,38 + ,45 + ,28 + ,33 + ,38 + ,33 + ,32 + ,43 + ,45 + ,38 + ,37 + ,38 + ,39 + ,33 + ,43 + ,39 + ,36 + ,37 + ,39 + ,32 + ,36 + ,30 + ,35 + ,40 + ,38 + ,38 + ,39 + ,38 + ,33 + ,43 + ,42 + ,32 + ,32 + ,41 + ,38 + ,37 + ,31 + ,39 + ,34 + ,39 + ,39 + ,44 + ,40 + ,39 + ,35 + ,31 + ,30 + ,34 + ,34 + ,38 + ,37 + ,23 + ,38 + ,40 + ,28 + ,42 + ,36 + ,36 + ,41 + ,44 + ,41 + ,31 + ,35 + ,29 + ,39 + ,34 + ,31 + ,40 + ,40 + ,33 + ,31 + ,34 + ,35 + ,34 + ,39 + ,35 + ,23 + ,36 + ,34 + ,28 + ,40 + ,40 + ,36 + ,37 + ,34 + ,41 + ,35 + ,36 + ,29 + ,45 + ,35 + ,31 + ,39 + ,39 + ,33 + ,39 + ,33 + ,35 + ,37 + ,37 + ,35 + ,38 + ,40 + ,34 + ,46 + ,32 + ,40 + ,37 + ,37 + ,34 + ,27 + ,27 + ,36 + ,33 + ,35 + ,35 + ,42 + ,37 + ,39 + ,33 + ,32 + ,33 + ,33 + ,31 + ,37 + ,33 + ,31 + ,40 + ,38 + ,38 + ,32 + ,37 + ,34 + ,37 + ,35 + ,30 + ,27 + ,33 + ,34 + ,35 + ,39 + ,37 + ,37 + ,38 + ,38 + ,32 + ,39 + ,33 + ,31 + ,38 + ,35 + ,31 + ,30 + ,27 + ,38 + ,43 + ,34 + ,34 + ,34 + ,35 + ,30 + ,39 + ,39 + ,34 + ,36 + ,35 + ,37 + ,32 + ,34 + ,38 + ,37 + ,36 + ,33 + ,42 + ,36 + ,35 + ,40 + ,32 + ,27 + ,35 + ,39 + ,34 + ,39 + ,40 + ,35 + ,34 + ,35 + ,39 + ,28 + ,31 + ,35 + ,30 + ,35 + ,34 + ,36 + ,38 + ,36 + ,31 + ,37 + ,36 + ,34 + ,31 + ,32 + ,33 + ,32 + ,39 + ,37 + ,35 + ,40 + ,40 + ,39 + ,35 + ,39 + ,31 + ,31 + ,42 + ,39 + ,35 + ,47 + ,48 + ,38 + ,38 + ,33 + ,37 + ,38 + ,36 + ,31 + ,40 + ,40 + ,32 + ,37 + ,37 + ,35 + ,29 + ,34 + ,39 + ,37 + ,42 + ,31 + ,37 + ,39 + ,39 + ,33 + ,28 + ,48 + ,31 + ,26 + ,33 + ,36 + ,30 + ,36 + ,37 + ,30 + ,40 + ,39 + ,39 + ,37 + ,35 + ,37 + ,34 + ,33 + ,40 + ,42 + ,37 + ,38 + ,39 + ,42 + ,35 + ,28 + ,31 + ,33 + ,26 + ,32 + ,34 + ,30 + ,36 + ,33 + ,30 + ,32 + ,41 + ,39 + ,40 + ,36 + ,37 + ,32 + ,27 + ,40 + ,30 + ,33 + ,38 + ,37 + ,38 + ,42 + ,42 + ,31 + ,37 + ,37 + ,31 + ,47 + ,47 + ,46 + ,37 + ,37 + ,33 + ,31 + ,31 + ,34 + ,41 + ,41 + ,47 + ,44 + ,44 + ,36 + ,40 + ,40 + ,38 + ,37 + ,37 + ,32 + ,33 + ,33 + ,33 + ,35 + ,35 + ,34 + ,40 + ,40 + ,34 + ,38 + ,38 + ,37 + ,36 + ,36 + ,37 + ,36 + ,36 + ,41 + ,35 + ,35 + ,27 + ,30 + ,30 + ,31 + ,37 + ,37 + ,38 + ,43 + ,43 + ,30 + ,33 + ,33 + ,36 + ,39 + ,39 + ,30 + ,38 + ,38 + ,34 + ,40 + ,40 + ,32 + ,29 + ,29 + ,29 + ,35 + ,35 + ,29 + ,37 + ,37 + ,39 + ,26 + ,26 + ,32 + ,28 + ,28 + ,30 + ,38 + ,38 + ,39 + ,29 + ,29 + ,30 + ,35 + ,35 + ,40 + ,38 + ,38 + ,41 + ,41 + ,39 + ,38 + ,38 + ,44 + ,37 + ,37 + ,33 + ,33 + ,33 + ,35 + ,34 + ,34 + ,42 + ,36 + ,36 + ,30 + ,39 + ,39 + ,36 + ,41 + ,41 + ,40 + ,42 + ,42 + ,39 + ,38 + ,38 + ,36 + ,40 + ,40 + ,37 + ,32 + ,32 + ,37 + ,40 + ,40 + ,37 + ,37 + ,37 + ,36 + ,36 + ,36 + ,30 + ,28 + ,28 + ,32 + ,36 + ,36 + ,35 + ,35 + ,35 + ,42 + ,32 + ,32 + ,41 + ,38 + ,38 + ,35 + ,32 + ,32 + ,33 + ,39 + ,39 + ,39 + ,39 + ,39 + ,34 + ,31 + ,31 + ,39 + ,33 + ,33 + ,41 + ,46 + ,46 + ,34 + ,38 + ,33 + ,30 + ,24 + ,40 + ,29 + ,28 + ,32 + ,33 + ,35 + ,37 + ,40 + ,39 + ,37 + ,32 + ,37 + ,36 + ,37 + ,38 + ,41 + ,37 + ,38 + ,34 + ,36 + ,32 + ,38 + ,41 + ,36 + ,40 + ,34 + ,28 + ,42 + ,38 + ,38 + ,32 + ,40 + ,28 + ,40 + ,42 + ,37 + ,38 + ,32 + ,28 + ,35 + ,40 + ,40 + ,34 + ,38 + ,34 + ,38 + ,35 + ,33 + ,24 + ,34 + ,32 + ,39 + ,38 + ,30 + ,42 + ,24 + ,33 + ,44 + ,39 + ,37 + ,35 + ,42 + ,39 + ,37 + ,44 + ,42 + ,34 + ,35 + ,36 + ,41 + ,37 + ,35 + ,33 + ,34 + ,32 + ,35 + ,41 + ,35 + ,33 + ,33 + ,33 + ,36 + ,42 + ,36 + ,31 + ,30 + ,31 + ,32 + ,30 + ,32 + ,38 + ,40 + ,38 + ,46 + ,49 + ,46 + ,39 + ,39 + ,39 + ,31 + ,29 + ,31 + ,39 + ,39 + ,39 + ,36 + ,35 + ,36 + ,37 + ,35 + ,37 + ,33 + ,34 + ,33 + ,22 + ,24 + ,22 + ,42 + ,47 + ,42 + ,28 + ,24 + ,28 + ,28 + ,30 + ,28 + ,31 + ,34 + ,31 + ,36 + ,41 + ,36 + ,37 + ,32 + ,37 + ,35 + ,32 + ,35 + ,31 + ,35 + ,31 + ,37 + ,37 + ,37 + ,38 + ,40 + ,38 + ,46 + ,45 + ,46 + ,40 + ,35 + ,40 + ,43 + ,39 + ,43 + ,40 + ,46 + ,49 + ,35 + ,33 + ,39 + ,38 + ,40 + ,37 + ,36 + ,35 + ,36 + ,34 + ,38 + ,31 + ,30 + ,36 + ,32 + ,44 + ,34 + ,38 + ,37 + ,30 + ,37 + ,36 + ,44 + ,36 + ,37 + ,37 + ,21 + ,34 + ,36 + ,32 + ,43 + ,37 + ,36 + ,31 + ,34 + ,35 + ,34 + ,43 + ,39 + ,38 + ,31 + ,28 + ,38 + ,34 + ,42 + ,34 + ,38 + ,36 + ,26 + ,38 + ,41 + ,36 + ,34 + ,30 + ,35 + ,26 + ,18 + ,37 + ,36 + ,37 + ,40 + ,35 + ,28 + ,43 + ,37 + ,39 + ,29 + ,40 + ,40 + ,34 + ,43 + ,44 + ,37 + ,29 + ,26 + ,37 + ,30 + ,34 + ,32 + ,36 + ,37 + ,29 + ,38 + ,37 + ,31 + ,43 + ,32 + ,32 + ,41 + ,29 + ,44 + ,31 + ,31 + ,39 + ,36 + ,32 + ,39 + ,44 + ,44 + ,35 + ,35 + ,39 + ,36 + ,42 + ,39 + ,34 + ,31 + ,35 + ,40 + ,38 + ,36 + ,41 + ,34 + ,33 + ,30 + ,40 + ,35 + ,43 + ,41 + ,35 + ,35 + ,30 + ,30 + ,30 + ,43 + ,38 + ,38) + ,dim=c(3 + ,330) + ,dimnames=list(c('2008-2009' + ,'2009-2010' + ,'2010-2011') + ,1:330)) > y <- array(NA,dim=c(3,330),dimnames=list(c('2008-2009','2009-2010','2010-2011'),1:330)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'blue' > ylab = 'value' > xlab = 'variables' > main = 'Notched Boxplots' > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1zyoc1323447444.ps",horizontal=F,onefile=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] [1,] 24 23 24 [2,] 33 32 33 [3,] 36 35 36 [4,] 39 38 39 [5,] 47 47 48 $n [1] 330 330 330 $conf [,1] [,2] [,3] [1,] 35.47814 34.47814 35.47814 [2,] 36.52186 35.52186 36.52186 $out [1] 49 48 22 49 21 18 12 23 22 $group [1] 1 2 2 2 2 2 3 3 3 $names [1] "2008-2009" "2009-2010" "2010-2011" > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/2a0zi1323447444.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/wessaorg/rcomp/tmp/3wv711323447444.tab") > > try(system("convert tmp/1zyoc1323447444.ps tmp/1zyoc1323447444.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.697 0.085 0.779