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(1 + ,26 + ,21 + ,21 + ,23 + ,17 + ,23 + ,1 + ,20 + ,16 + ,15 + ,24 + ,17 + ,20 + ,1 + ,19 + ,19 + ,18 + ,22 + ,18 + ,20 + ,2 + ,19 + ,18 + ,11 + ,20 + ,21 + ,21 + ,1 + ,20 + ,16 + ,8 + ,24 + ,20 + ,24 + ,1 + ,25 + ,23 + ,19 + ,27 + ,28 + ,22 + ,2 + ,25 + ,17 + ,4 + ,28 + ,19 + ,23 + ,1 + ,22 + ,12 + ,20 + ,27 + ,22 + ,20 + ,1 + ,26 + ,19 + ,16 + ,24 + ,16 + ,25 + ,1 + ,22 + ,16 + ,14 + ,23 + ,18 + ,23 + ,2 + ,17 + ,19 + ,10 + ,24 + ,25 + ,27 + ,2 + ,22 + ,20 + ,13 + ,27 + ,17 + ,27 + ,1 + ,19 + ,13 + ,14 + ,27 + ,14 + ,22 + ,1 + ,24 + ,20 + ,8 + ,28 + ,11 + ,24 + ,1 + ,26 + ,27 + ,23 + ,27 + ,27 + ,25 + ,2 + ,21 + ,17 + ,11 + ,23 + ,20 + ,22 + ,1 + ,13 + ,8 + ,9 + ,24 + ,22 + ,28 + ,2 + ,26 + ,25 + ,24 + ,28 + ,22 + ,28 + ,2 + ,20 + ,26 + ,5 + ,27 + ,21 + ,27 + ,1 + ,22 + ,13 + ,15 + ,25 + ,23 + ,25 + ,2 + ,14 + ,19 + ,5 + ,19 + ,17 + ,16 + ,1 + ,21 + ,15 + ,19 + ,24 + ,24 + ,28 + ,1 + ,7 + ,5 + ,6 + ,20 + ,14 + ,21 + ,2 + ,23 + ,16 + ,13 + ,28 + ,17 + ,24 + ,1 + ,17 + ,14 + ,11 + ,26 + ,23 + ,27 + ,1 + ,25 + ,24 + ,17 + ,23 + ,24 + ,14 + ,1 + ,25 + ,24 + ,17 + ,23 + ,24 + ,14 + ,1 + ,19 + ,9 + ,5 + ,20 + ,8 + ,27 + ,2 + ,20 + ,19 + ,9 + ,11 + ,22 + ,20 + ,1 + ,23 + ,19 + ,15 + ,24 + ,23 + ,21 + ,2 + ,22 + ,25 + ,17 + ,25 + ,25 + ,22 + ,1 + ,22 + ,19 + ,17 + ,23 + ,21 + ,21 + ,1 + ,21 + ,18 + ,20 + ,18 + ,24 + ,12 + ,2 + ,15 + ,15 + ,12 + ,20 + ,15 + ,20 + ,2 + ,20 + ,12 + ,7 + ,20 + ,22 + ,24 + ,2 + ,22 + ,21 + ,16 + ,24 + ,21 + ,19 + ,1 + ,18 + ,12 + ,7 + ,23 + ,25 + ,28 + ,2 + ,20 + ,15 + ,14 + ,25 + ,16 + ,23 + ,2 + ,28 + ,28 + ,24 + ,28 + ,28 + ,27 + ,1 + ,22 + ,25 + ,15 + ,26 + ,23 + ,22 + ,1 + ,18 + ,19 + ,15 + ,26 + ,21 + ,27 + ,1 + ,23 + ,20 + ,10 + ,23 + ,21 + ,26 + ,1 + ,20 + ,24 + ,14 + ,22 + ,26 + ,22 + ,2 + ,25 + ,26 + ,18 + ,24 + ,22 + ,21 + ,2 + ,26 + ,25 + ,12 + ,21 + ,21 + ,19 + ,1 + ,15 + ,12 + ,9 + ,20 + ,18 + ,24 + ,2 + ,17 + ,12 + ,9 + ,22 + ,12 + ,19 + ,2 + ,23 + ,15 + ,8 + ,20 + ,25 + ,26 + ,1 + ,21 + ,17 + ,18 + ,25 + ,17 + ,22 + ,2 + ,13 + ,14 + ,10 + ,20 + ,24 + ,28 + ,1 + ,18 + ,16 + ,17 + ,22 + ,15 + ,21 + ,1 + ,19 + ,11 + ,14 + ,23 + ,13 + ,23 + ,1 + ,22 + ,20 + ,16 + ,25 + ,26 + ,28 + ,1 + ,16 + ,11 + ,10 + ,23 + ,16 + ,10 + ,2 + ,24 + ,22 + ,19 + ,23 + ,24 + ,24 + ,1 + ,18 + ,20 + ,10 + ,22 + ,21 + ,21 + ,1 + ,20 + ,19 + ,14 + ,24 + ,20 + ,21 + ,1 + ,24 + ,17 + ,10 + ,25 + ,14 + ,24 + ,2 + ,14 + ,21 + ,4 + ,21 + ,25 + ,24 + ,2 + ,22 + ,23 + ,19 + ,12 + ,25 + ,25 + ,1 + ,24 + ,18 + ,9 + ,17 + ,20 + ,25 + ,1 + ,18 + ,17 + ,12 + ,20 + ,22 + ,23 + ,1 + ,21 + ,27 + ,16 + ,23 + ,20 + ,21 + ,2 + ,23 + ,25 + ,11 + ,23 + ,26 + ,16 + ,1 + ,17 + ,19 + ,18 + ,20 + ,18 + ,17 + ,2 + ,22 + ,22 + ,11 + ,28 + ,22 + ,25 + ,2 + ,24 + ,24 + ,24 + ,24 + ,24 + ,24 + ,2 + ,21 + ,20 + ,17 + ,24 + ,17 + ,23 + ,1 + ,22 + ,19 + ,18 + ,24 + ,24 + ,25 + ,1 + ,16 + ,11 + ,9 + ,24 + ,20 + ,23 + ,1 + ,21 + ,22 + ,19 + ,28 + ,19 + ,28 + ,2 + ,23 + ,22 + ,18 + ,25 + ,20 + ,26 + ,2 + ,22 + ,16 + ,12 + ,21 + ,15 + ,22 + ,1 + ,24 + ,20 + ,23 + ,25 + ,23 + ,19 + ,1 + ,24 + ,24 + ,22 + ,25 + ,26 + ,26 + ,1 + ,16 + ,16 + ,14 + ,18 + ,22 + ,18 + ,1 + ,16 + ,16 + ,14 + ,17 + ,20 + ,18 + ,2 + ,21 + ,22 + ,16 + ,26 + ,24 + ,25 + ,2 + ,26 + ,24 + ,23 + ,28 + ,26 + ,27 + ,2 + ,15 + ,16 + ,7 + ,21 + ,21 + ,12 + ,2 + ,25 + ,27 + ,10 + ,27 + ,25 + ,15 + ,1 + ,18 + ,11 + ,12 + ,22 + ,13 + ,21 + ,0 + ,23 + ,21 + ,12 + ,21 + ,20 + ,23 + ,1 + ,20 + ,20 + ,12 + ,25 + ,22 + ,22 + ,2 + ,17 + ,20 + ,17 + ,22 + ,23 + ,21 + ,2 + ,25 + ,27 + ,21 + ,23 + ,28 + ,24 + ,1 + ,24 + ,20 + ,16 + ,26 + ,22 + ,27 + ,1 + ,17 + ,12 + ,11 + ,19 + ,20 + ,22 + ,1 + ,19 + ,8 + ,14 + ,25 + ,6 + ,28 + ,1 + ,20 + ,21 + ,13 + ,21 + ,21 + ,26 + ,1 + ,15 + ,18 + ,9 + ,13 + ,20 + ,10 + ,2 + ,27 + ,24 + ,19 + ,24 + ,18 + ,19 + ,1 + ,22 + ,16 + ,13 + ,25 + ,23 + ,22 + ,1 + ,23 + ,18 + ,19 + ,26 + ,20 + ,21 + ,1 + ,16 + ,20 + ,13 + ,25 + ,24 + ,24 + ,1 + ,19 + ,20 + ,13 + ,25 + ,22 + ,25 + ,2 + ,25 + ,19 + ,13 + ,22 + ,21 + ,21 + ,1 + ,19 + ,17 + ,14 + ,21 + ,18 + ,20 + ,2 + ,19 + ,16 + ,12 + ,23 + ,21 + ,21 + ,2 + ,26 + ,26 + ,22 + ,25 + ,23 + ,24 + ,1 + ,21 + ,15 + ,11 + ,24 + ,23 + ,23 + ,2 + ,20 + ,22 + ,5 + ,21 + ,15 + ,18 + ,1 + ,24 + ,17 + ,18 + ,21 + ,21 + ,24 + ,1 + ,22 + ,23 + ,19 + ,25 + ,24 + ,24 + ,2 + ,20 + ,21 + ,14 + ,22 + ,23 + ,19 + ,1 + ,18 + ,19 + ,15 + ,20 + ,21 + ,20 + ,2 + ,18 + ,14 + ,12 + ,20 + ,21 + ,18 + ,1 + ,24 + ,17 + ,19 + ,23 + ,20 + ,20 + ,1 + ,24 + ,12 + ,15 + ,28 + ,11 + ,27 + ,1 + ,22 + ,24 + ,17 + ,23 + ,22 + ,23 + ,1 + ,23 + ,18 + ,8 + ,28 + ,27 + ,26 + ,1 + ,22 + ,20 + ,10 + ,24 + ,25 + ,23 + ,1 + ,20 + ,16 + ,12 + ,18 + ,18 + ,17 + ,1 + ,18 + ,20 + ,12 + ,20 + ,20 + ,21 + ,1 + ,25 + ,22 + ,20 + ,28 + ,24 + ,25 + ,2 + ,18 + ,12 + ,12 + ,21 + ,10 + ,23 + ,1 + ,16 + ,16 + ,12 + ,21 + ,27 + ,27 + ,1 + ,20 + ,17 + ,14 + ,25 + ,21 + ,24 + ,2 + ,19 + ,22 + ,6 + ,19 + ,21 + ,20 + ,1 + ,15 + ,12 + ,10 + ,18 + ,18 + ,27 + ,1 + ,19 + ,14 + ,18 + ,21 + ,15 + ,21 + ,1 + ,19 + ,23 + ,18 + ,22 + ,24 + ,24 + ,1 + ,16 + ,15 + ,7 + ,24 + ,22 + ,21 + ,1 + ,17 + ,17 + ,18 + ,15 + ,14 + ,15 + ,1 + ,28 + ,28 + ,9 + ,28 + ,28 + ,25 + ,2 + ,23 + ,20 + ,17 + ,26 + ,18 + ,25 + ,1 + ,25 + ,23 + ,22 + ,23 + ,26 + ,22 + ,1 + ,20 + ,13 + ,11 + ,26 + ,17 + ,24 + ,2 + ,17 + ,18 + ,15 + ,20 + ,19 + ,21 + ,2 + ,23 + ,23 + ,17 + ,22 + ,22 + ,22 + ,1 + ,16 + ,19 + ,15 + ,20 + ,18 + ,23 + ,2 + ,23 + ,23 + ,22 + ,23 + ,24 + ,22 + ,2 + ,11 + ,12 + ,9 + ,22 + ,15 + ,20 + ,2 + ,18 + ,16 + ,13 + ,24 + ,18 + ,23 + ,2 + ,24 + ,23 + ,20 + ,23 + ,26 + ,25 + ,1 + ,23 + ,13 + ,14 + ,22 + ,11 + ,23 + ,1 + ,21 + ,22 + ,14 + ,26 + ,26 + ,22 + ,2 + ,16 + ,18 + ,12 + ,23 + ,21 + ,25 + ,2 + ,24 + ,23 + ,20 + ,27 + ,23 + ,26 + ,1 + ,23 + ,20 + ,20 + ,23 + ,23 + ,22 + ,1 + ,18 + ,10 + ,8 + ,21 + ,15 + ,24 + ,1 + ,20 + ,17 + ,17 + ,26 + ,22) + ,dim=c(7 + ,142) + ,dimnames=list(c('G' + ,'I1' + ,'I2' + ,'I3' + ,'E1' + ,'E2' + ,'E3') + ,1:142)) > y <- array(NA,dim=c(7,142),dimnames=list(c('G','I1','I2','I3','E1','E2','E3'),1:142)) > 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' > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1h1rg1318511392.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] [,4] [,5] [,6] [,7] [1,] 0 11 8 4 15 10 15 [2,] 1 18 16 11 21 18 21 [3,] 1 21 19 14 23 21 23 [4,] 2 23 22 18 25 24 25 [5,] 2 28 28 24 28 28 28 $n [1] 142 142 142 142 142 142 142 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.8674093 20.33705 18.20446 13.07187 22.46964 20.20446 22.46964 [2,] 1.1325907 21.66295 19.79554 14.92813 23.53036 21.79554 23.53036 $out [1] 7 5 11 12 13 8 6 14 14 12 10 12 10 1 $group [1] 2 3 5 5 5 6 6 7 7 7 7 7 7 7 $names [1] "G" "I1" "I2" "I3" "E1" "E2" "E3" Warning message: In bxp(list(stats = c(0, 1, 1, 2, 2, 11, 18, 21, 23, 28, 8, 16, : some notches went outside hinges ('box'): maybe set notch=FALSE > 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/252rx1318511392.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/37stg1318511392.tab") > > try(system("convert tmp/1h1rg1318511392.ps tmp/1h1rg1318511392.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.685 0.122 0.804