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(1.14,0.88,0.85,0.97,0.88,0.86,-0.27,-0.28,-0.21,0.08,0.09,0.02,1.07,0.86,0.82,0.86,0.87,0.84,0.18,0.22,0.26,-0.12,-0.16,-0.22,0.92,0.79,0.78,0.52,0.6,0.62,1.15,0.91,0.88,0.87,0.84,0.81,0.59,0.64,0.62,0.75,0.82,0.81,1.05,0.86,0.83,0.78,0.83,0.8,-0.49,-0.53,-0.47,-0.66,-0.71,-0.68,0.98,0.88,0.84,0.92,0.83,0.8,0.74,0.81,0.78,0.65,0.72,0.71,0.51,0.6,0.62,0.41,0.56,0.57,0.6,0.64,0.61,0.47,0.53,0.52,0.42,0.53,0.53,0.4,0.46,0.45,0.72,0.69,0.66,0.48,0.58,0.57,0.35,0.53,0.49,0.21,0.31,0.32,0.58,0.7,0.67,0.65,0.78,0.78,0.62,0.72,0.71,0.59,0.73,0.78,0.54,0.63,0.63,0.34,0.43,0.4,0.08,0.09,0.13,-0.05,-0.06,-0.02),dim=c(6,20),dimnames=list(c('mean0','sum0','count0','mean1','sum1','count1'),1:20)) > y <- array(NA,dim=c(6,20),dimnames=list(c('mean0','sum0','count0','mean1','sum1','count1'),1:20)) > 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/1ozf91355933407.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] [1,] -0.270 0.090 0.130 -0.120 -0.160 -0.220 [2,] 0.385 0.530 0.510 0.275 0.370 0.360 [3,] 0.595 0.665 0.645 0.500 0.590 0.595 [4,] 0.950 0.835 0.800 0.765 0.825 0.800 [5,] 1.150 0.910 0.880 0.970 0.880 0.860 $n [1] 20 20 20 20 20 20 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 0.3953862 0.5572439 0.5425434 0.3268836 0.4292491 0.4395486 [2,] 0.7946138 0.7727561 0.7474566 0.6731164 0.7507509 0.7504514 $out [1] -0.49 -0.28 -0.53 -0.21 -0.47 -0.66 -0.71 -0.68 $group [1] 1 2 2 3 3 4 5 6 $names [1] "mean0" "sum0" "count0" "mean1" "sum1" "count1" > 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/2jomz1355933407.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/3x0ht1355933407.tab") > > try(system("convert tmp/1ozf91355933407.ps tmp/1ozf91355933407.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.880 0.296 2.106