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(26,21,21,20,16,15,19,19,18,20,16,8,25,23,19,22,12,20,26,19,16,22,16,14,19,13,14,24,20,8,26,27,23,13,8,9,22,13,15,21,15,19,7,5,6,17,14,11,25,24,17,25,24,17,19,9,5,23,19,15,22,19,17,21,18,20,18,12,7,22,25,15,18,19,15,23,20,10,20,24,14,15,12,9,21,17,18,18,16,17,19,11,14,22,20,16,16,11,10,18,20,10,20,19,14,24,17,10,24,18,9,18,17,12,21,27,16,17,19,18,22,19,18,16,11,9,21,22,19,24,20,23,24,24,22,16,16,14,16,16,14,18,11,12,20,20,12,24,20,16,17,12,11,19,8,14,20,21,13,15,18,9,22,16,13,23,18,19,16,20,13,19,20,13,19,17,14,21,15,11,24,17,18,22,23,19,18,19,15,24,17,19,24,12,15,22,24,17,23,18,8,22,20,10,20,16,12,18,20,12,25,22,20,16,16,12,20,17,14,15,12,10,19,14,18,19,23,18,16,15,7,17,17,18,28,28,9,25,23,22,20,13,11,16,19,15,23,13,14,21,22,14,23,20,20,18,10,8,20,17,17,9,18,9,25,23,22,20,17,10,21,19,12,22,18,12,27,22,20,18,16,18,16,16,16,22,16,13,20,16,17,20,18,17),dim=c(3,98),dimnames=list(c('I1','I2','I3'),1:98)) > y <- array(NA,dim=c(3,98),dimnames=list(c('I1','I2','I3'),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' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Notched Boxplots (v1.0.6) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_notchedbox1.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/163e71382547133.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 10 5 [2,] 18 16 11 [3,] 20 18 14 [4,] 23 20 18 [5,] 28 25 23 $n [1] 98 98 98 $conf [,1] [,2] [,3] [1,] 19.20198 17.36158 12.88277 [2,] 20.79802 18.63842 15.11723 $out [1] 7 9 27 8 5 9 27 8 28 $group [1] 1 1 2 2 2 2 2 2 2 $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/25lbq1382547133.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/3hy311382547133.tab") > > try(system("convert tmp/163e71382547133.ps tmp/163e71382547133.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.045 0.233 1.264