R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing 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(19,18,11,25,17,4,17,19,10,22,20,13,21,17,11,26,25,24,20,26,5,14,19,5,23,16,13,20,19,9,22,25,17,15,15,12,20,12,7,22,21,16,20,15,14,28,28,24,25,26,18,26,25,12,17,12,9,23,15,8,13,14,10,24,22,19,14,21,4,22,23,19,23,25,11,22,22,11,24,24,24,21,20,17,23,22,18,22,16,12,21,22,16,26,24,23,15,16,7,25,27,10,17,20,17,25,27,21,27,24,19,25,19,13,19,16,12,26,26,22,20,22,5,20,21,14,18,14,12,18,12,12,19,22,6,23,20,17,17,18,15,23,23,17,23,23,22,11,12,9,18,16,13,24,23,20,16,18,12,24,23,20,24,15,18,21,17,13,25,22,15,22,20,18,21,20,18,24,20,12,24,22,16,21,18,16,18,17,13),dim=c(3,63),dimnames=list(c('I1','I2','I3'),1:63)) > y <- array(NA,dim=c(3,63),dimnames=list(c('I1','I2','I3'),1:63)) > 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 = 'Vrouwen' > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1h6eu1382547441.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] [1,] 13 12 4 [2,] 19 17 11 [3,] 22 20 13 [4,] 24 23 18 [5,] 28 28 24 $n [1] 63 63 63 $conf [,1] [,2] [,3] [1,] 21.00469 18.80563 11.60657 [2,] 22.99531 21.19437 14.39343 $out [1] 11 $group [1] 1 $names [1] "I1" "I2" "I3" > 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/2u6sk1382547441.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/3n0g11382547441.tab") > > try(system("convert tmp/1h6eu1382547441.ps tmp/1h6eu1382547441.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.869 0.198 1.043