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(19,18,11,20,21,21,25,17,4,28,19,23,17,19,10,24,25,27,22,20,13,27,17,27,21,17,11,23,20,22,26,25,24,28,22,28,20,26,5,27,21,27,14,19,5,19,17,16,23,16,13,28,17,24,20,19,9,11,22,20,22,25,17,25,25,22,15,15,12,20,15,20,20,12,7,20,22,24,22,21,16,24,21,19,20,15,14,25,16,23,28,28,24,28,28,27,25,26,18,24,22,21,26,25,12,21,21,19,17,12,9,22,12,19,23,15,8,20,25,26,13,14,10,20,24,28,24,22,19,23,24,24,14,21,4,21,25,24,22,23,19,12,25,25,23,25,11,23,26,16,22,22,11,28,22,25,24,24,24,24,24,24,21,20,17,24,17,23,23,22,18,25,20,26,22,16,12,21,15,22,21,22,16,26,24,25,26,24,23,28,26,27,15,16,7,21,21,12,25,27,10,27,25,15,17,20,17,22,23,21,25,27,21,23,28,24,27,24,19,24,18,19,25,19,13,22,21,21,19,16,12,23,21,21,26,26,22,25,23,24,20,22,5,21,15,18,20,21,14,22,23,19,18,14,12,20,21,18),dim=c(6,43),dimnames=list(c('I1F','I2F','I3F','E1F','E2F','E3F'),1:43)) > y <- array(NA,dim=c(6,43),dimnames=list(c('I1F','I2F','I3F','E1F','E2F','E3F'),1:43)) > 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/1v3351318948708.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] [1,] 13.0 12.0 4.0 19 15.0 12.0 [2,] 19.5 16.5 10.0 21 19.5 19.5 [3,] 22.0 21.0 12.0 23 22.0 23.0 [4,] 24.5 24.0 17.5 25 24.0 25.0 [5,] 28.0 28.0 24.0 28 28.0 28.0 $n [1] 43 43 43 43 43 43 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 20.79526 19.19289 10.19289 22.03621 20.91574 21.67479 [2,] 23.20474 22.80711 13.80711 23.96379 23.08426 24.32521 $out [1] 11 12 12 $group [1] 4 4 5 $names [1] "I1F" "I2F" "I3F" "E1F" "E2F" "E3F" > 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/2usnt1318948708.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/384fg1318948708.tab") > > try(system("convert tmp/1v3351318948708.ps tmp/1v3351318948708.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.448 0.084 0.526