R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: i686-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(24,20,8,28,11,24,4,19,9,5,20,8,27,4,18,12,7,23,25,28,4,24,18,9,17,20,25,4,24,20,23,25,23,19,10,15,16,7,21,21,12,4,18,20,12,20,20,21,6,28,28,9,28,28,25,4,25,23,22,23,26,22,4,23,23,17,22,22,22,4,11,12,9,22,15,20,10,24,23,20,23,26,25,5,23,20,20,23,23,22,8,25,23,22,27,20,26,8,21,19,12,22,19,26,5,20,16,17,22,18,21,6),dim=c(7,16),dimnames=list(c('I1','I2','I3','E1','E2','E3','A'),1:16)) > y <- array(NA,dim=c(7,16),dimnames=list(c('I1','I2','I3','E1','E2','E3','A'),1:16)) > 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/fisher/rcomp/tmp/11yub1382089823.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,] 11.0 9 5.0 20.0 11.0 19.0 4.0 [2,] 18.5 16 8.5 21.5 18.5 21.0 4.0 [3,] 23.0 20 12.0 22.5 20.5 23.0 4.5 [4,] 24.0 23 20.0 24.0 24.0 25.5 7.0 [5,] 28.0 28 23.0 27.0 28.0 28.0 10.0 $n [1] 16 16 16 16 16 16 16 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 20.8275 17.235 7.4575 21.5125 18.3275 21.2225 3.315 [2,] 25.1725 22.765 16.5425 23.4875 22.6725 24.7775 5.685 $out [1] 28 17 28 8 12 $group [1] 4 4 4 5 6 $names [1] "I1" "I2" "I3" "E1" "E2" "E3" "A" Warning message: In bxp(list(stats = c(11, 18.5, 23, 24, 28, 9, 16, 20, 23, 28, 5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/2lqyg1382089823.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/fisher/rcomp/tmp/3wi0s1382089823.tab") > > try(system("convert tmp/11yub1382089823.ps tmp/11yub1382089823.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.780 0.160 0.919