R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(41,38,39,32,30,35,31,33,34,37,35,29,39,31,34,36,36,35,37,38,38,31,36,34,38,35,39,38,33,37,32,33,36,32,38,38,39,38,32,32,32,33,31,31,39,38,37,39,39,32,41,32,36,35,33,37,33,33,34,33,31,28,27,32,37,31,34,37,34,30,32,33,29,31,36,33,29,31,35,33,37,32,34,33,38,32,35,33,38,28,37,35,38,39,33,34,36,38,38,32,32,38,32,30,32,33,34,38,32,32,37,32,39,34,29,34,37,36,35,34,30,28,38,34,34,35,31,35,34,31,35,37,36,35,30,27,39,40,35,37,38,36,31,38,34,39,38,41,34,27,39,30,37,37,34,31,28,31,37,27,33,36,37,38,35,37,37,33,32,34,33,31,38,39,33,34,29,32,33,33,31,36,36,32,35,41,32,28,29,30,39,36,37,35,35,31,37,34,32,36,38,36,37,35,36,37,32,28,33,39,40,32,38,35,41,39,36,35,43,42),dim=c(2,110),dimnames=list(c('Connected','Seperate'),1:110)) > y <- array(NA,dim=c(2,110),dimnames=list(c('Connected','Seperate'),1:110)) > 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/1kwav1354975561.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,] 27 27 [2,] 32 32 [3,] 35 34 [4,] 38 37 [5,] 43 42 $n [1] 110 110 $conf [,1] [,2] [1,] 34.09612 33.24676 [2,] 35.90388 34.75324 $out numeric(0) $group numeric(0) $names [1] "Connected" "Seperate" > 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/21n2b1354975561.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/36z5l1354975561.tab") > > try(system("convert tmp/1kwav1354975561.ps tmp/1kwav1354975561.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.008 0.181 1.160