R version 2.12.1 (2010-12-16) Copyright (C) 2010 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(2.75 + ,3.357142857 + ,3.178571429 + ,3.428571429 + ,3.214285714 + ,3.428571429 + ,3.285714286 + ,3.535714286 + ,3.642857143 + ,3.607142857 + ,3.642857143 + ,3.642857143 + ,3.75 + ,3.75 + ,3.821428571 + ,3.75 + ,3.857142857 + ,3.821428571 + ,3.857142857 + ,3.892857143 + ,3.857142857 + ,3.964285714 + ,3.857142857 + ,4 + ,3.857142857 + ,4.035714286 + ,3.892857143 + ,4.035714286 + ,3.892857143 + ,4.071428571 + ,3.928571429 + ,4.142857143 + ,4 + ,4.142857143 + ,4.035714286 + ,4.178571429 + ,4.035714286 + ,4.214285714 + ,4.071428571 + ,4.214285714 + ,4.071428571 + ,4.214285714 + ,4.107142857 + ,4.285714286 + ,4.107142857 + ,4.357142857 + ,4.107142857 + ,4.357142857 + ,4.142857143 + ,4.357142857 + ,4.178571429 + ,4.392857143 + ,4.178571429 + ,4.464285714 + ,4.178571429 + ,4.464285714 + ,4.178571429 + ,4.5 + ,4.178571429 + ,4.5 + ,4.214285714 + ,4.5 + ,4.214285714 + ,4.571428571 + ,4.214285714 + ,4.571428571 + ,4.214285714 + ,4.571428571 + ,4.214285714 + ,4.571428571 + ,4.25 + ,4.607142857 + ,4.285714286 + ,4.642857143 + ,4.285714286 + ,4.642857143 + ,4.285714286 + ,4.642857143 + ,4.321428571 + ,4.642857143 + ,4.321428571 + ,4.678571429 + ,4.357142857 + ,4.678571429 + ,4.357142857 + ,4.75 + ,4.392857143 + ,4.75 + ,4.392857143 + ,4.785714286 + ,4.428571429 + ,4.785714286 + ,4.464285714 + ,4.821428571 + ,4.5 + ,4.928571429 + ,4.5 + ,4.928571429 + ,4.5 + ,4.928571429 + ,4.535714286 + ,4.964285714 + ,4.535714286 + ,5 + ,4.535714286 + ,5 + ,4.535714286 + ,5.035714286 + ,4.535714286 + ,5.142857143 + ,4.571428571 + ,5.214285714 + ,4.607142857 + ,5.25 + ,4.607142857 + ,5.357142857 + ,4.607142857 + ,5.428571429 + ,4.607142857 + ,5.464285714 + ,4.607142857 + ,5.607142857 + ,4.642857143 + ,5.642857143 + ,4.678571429 + ,5.964285714 + ,4.678571429 + ,4.428571429 + ,4.678571429 + ,4.678571429 + ,4.678571429 + ,4.678571429 + ,4.678571429 + ,4.714285714 + ,4.75 + ,4.75 + ,4.75 + ,4.785714286 + ,4.785714286 + ,4.785714286 + ,4.821428571 + ,4.821428571 + ,4.821428571 + ,4.857142857 + ,4.892857143 + ,4.928571429 + ,4.928571429 + ,4.964285714 + ,5 + ,5 + ,5.035714286 + ,5.035714286 + ,5.071428571 + ,5.071428571 + ,5.142857143 + ,5.178571429 + ,5.285714286 + ,5.285714286 + ,5.357142857 + ,5.392857143 + ,5.428571429 + ,5.678571429) + ,dim=c(2 + ,98) + ,dimnames=list(c('1' + ,'2') + ,1:98)) > y <- array(NA,dim=c(2,98),dimnames=list(c('1','2'),1:98)) > 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/www/rcomp/tmp/19jbr1318840808.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] [1,] 2.750000 3.357143 [2,] 3.857143 4.035714 [3,] 4.214286 4.535714 [4,] 4.607143 4.928571 [5,] 5.428571 5.964286 $n [1] 98 98 $conf [,1] [,2] [1,] 4.094583 4.393211 [2,] 4.333989 4.678218 $out numeric(0) $group numeric(0) $names [1] "1" "2" > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/www/rcomp/tmp/2j27c1318840808.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/www/rcomp/tmp/3u03l1318840808.tab") > > try(system("convert tmp/19jbr1318840808.ps tmp/19jbr1318840808.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.524 0.120 0.627