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(20,13,11,26,17,24,6,16,19,15,20,18,23,7,23,13,14,22,11,23,8,21,22,14,26,26,22,11,23,20,20,23,23,22,8,18,10,8,21,15,24,6,20,17,17,26,22,24,7,9,18,9,23,26,25,5,25,23,22,27,20,26,8,20,17,10,19,18,21,4,21,19,12,22,19,26,5,22,18,12,25,23,28,6,27,22,20,25,24,18,4,18,16,18,25,23,20,6,16,16,16,19,27,25,16,22,16,13,25,23,22,6,20,16,17,22,18,21,6,20,18,17,20,16,18,4),dim=c(7,18),dimnames=list(c('I1','I2','I3','E1','E2','E3','A'),1:18)) > y <- array(NA,dim=c(7,18),dimnames=list(c('I1','I2','I3','E1','E2','E3','A'),1:18)) > 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/11ci31318511524.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,] 16 13.0 8.0 19 11 18 4 [2,] 18 16.0 12.0 21 18 21 5 [3,] 20 17.5 14.5 23 21 23 6 [4,] 22 19.0 17.0 25 23 25 8 [5,] 27 23.0 22.0 27 27 28 11 $n [1] 18 18 18 18 18 18 18 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 18.51036 16.38277 12.63795 21.51036 19.13795 21.51036 4.882771 [2,] 21.48964 18.61723 16.36205 24.48964 22.86205 24.48964 7.117229 $out [1] 9 10 16 $group [1] 1 2 7 $names [1] "I1" "I2" "I3" "E1" "E2" "E3" "A" Warning message: In bxp(list(stats = c(16, 18, 20, 22, 27, 13, 16, 17.5, 19, 23, : 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/2hxbg1318511524.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/3lfuv1318511524.tab") > > try(system("convert tmp/11ci31318511524.ps tmp/11ci31318511524.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.494 0.084 0.570