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(135,118,116,120,122,126,120,130,148,122,131,157,131,130,120,94,113,125,119,105,159,140,108,107,131,109,138,131,77,117,123,167,131,141,131,128,92,96,129,129,127,118,128,140,117,113,137,131,133,128,127,134,134,150,114,126,126,138,118,113,107,139,142,158,90,96,117,133,122,128,118,152,117,135,118,125,132,116,127,153,136,105,108,123,141,111,144,101,152,112,112,134,109,114,102,133,125,144,140,99,115,116,108,146,130,122,89,147,127,118,131,130,129,130,131,128,115,126,121,138,133,138,141,122,123,102,129,124,121,135,134,129,105,117,148,126,129,108,118,138,110,108,150,145,117,118,114,142,139,102,133,115,151,109,124,134,140,126,135,127,120,113),dim=c(2,98),dimnames=list(c('TM','TF'),1:98)) > y <- array(NA,dim=c(2,98),dimnames=list(c('TM','TF'),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/fisher/rcomp/tmp/13tss1355495515.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,] 102.0 94 [2,] 117.0 115 [3,] 126.5 126 [4,] 133.0 135 [5,] 152.0 158 $n [1] 98 98 $conf [,1] [,2] [1,] 123.9463 122.8079 [2,] 129.0537 129.1921 $out [1] 159 77 92 90 89 159 77 167 167 $group [1] 1 1 1 1 1 1 1 2 2 $names [1] "TM" "TF" > 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/2q3fz1355495515.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/3ecw61355495515.tab") > > try(system("convert tmp/13tss1355495515.ps tmp/13tss1355495515.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.898 0.330 1.208