R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" 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(26,0,20,0,19,0,0,19,20,0,25,0,0,25,22,0,26,0,22,0,0,17,0,22,19,0,24,0,26,0,0,21,13,0,0,26,0,20,22,0,0,14,21,0,7,0,0,23,17,0,25,0,25,0,19,0,0,20,23,0,0,22,22,0,21,0,0,15,0,20,0,22,18,0,0,20,0,28,22,0,18,0,23,0,20,0,0,25,0,26,15,0,0,17,0,23,21,0,0,13,18,0,19,0,22,0,16,0,0,24,18,0,20,0,24,0,0,14,0,22,24,0,18,0,21,0,0,23,17,0,0,22,0,24,0,21,22,0,16,0,21,0,0,23,0,22,24,0,24,0,16,0,16,0,0,21,0,26,0,15,0,25,18,0,0,0,20,0,0,17,0,25,24,0,17,0,19,0,20,0,15,0,0,27,22,0,23,0,16,0,19,0,0,25,19,0,0,19,0,26,21,0,0,20,24,0,22,0,0,20,18,0,0,18,24,0,24,0,22,0,23,0,22,0,20,0,18,0,25,0,0,18,16,0,20,0,0,19,15,0,19,0,19,0,16,0,17,0,28,0,0,23,25,0,20,0,0,17,0,23,16,0,0,23,0,11,0,18,0,24,23,0,21,0,0,16,0,24,23,0,18,0,20,0,9,0,0,24,25,0,20,0,0,21,0,25,0,22,0,21,21,0,22,0,27,0,0,24,0,24,0,21,18,0,16,0,22,0,20,0,0,18,20,0),dim=c(2,162),dimnames=list(c('I1M','I1F'),1:162)) > y <- array(NA,dim=c(2,162),dimnames=list(c('I1M','I1F'),1:162)) > 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/159wo1350041339.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,] 0 0 [2,] 0 0 [3,] 17 0 [4,] 21 20 [5,] 28 28 $n [1] 162 162 $conf [,1] [,2] [1,] 14.39313 -2.48273 [2,] 19.60687 2.48273 $out numeric(0) $group numeric(0) $names [1] "I1M" "I1F" Warning message: In bxp(list(stats = c(0, 0, 17, 21, 28, 0, 0, 0, 20, 28), n = c(162, : 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/2vzhr1350041339.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/3food1350041339.tab") > > try(system("convert tmp/159wo1350041339.ps tmp/159wo1350041339.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.812 0.141 0.932