R version 2.8.1 (2008-12-22) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(14.5,14.8,14.3,14.7,15.3,16,14.4,15.4,13.7,15,14.2,15.5,13.5,15.1,11.9,11.7,14.6,16.3,15.6,16.7,14.1,15,14.9,14.9,14.2,14.6,14.6,15.3,17.2,17.9,15.4,16.4,14.3,15.4,17.5,17.9,14.5,15.9,14.4,13.9,16.6,17.8,16.7,17.9,16.6,17.4,16.9,16.7,15.7,16,16.4,16.6,18.4,19.1,16.9,17.8,16.5,17.2,18.3,18.6,15.1,16.3,15.7,15.1,18.1,19.2,16.8,17.7,18.9,19.1,19,18,18.1,17.5,17.8,17.8,21.5,21.1,17.1,17.2,18.7,19.4,19,19.8,16.4,17.6,16.9,16.2,18.6,19.5,19.3,19.9,19.4,20,17.6,17.3,18.6,18.9,18.1,18.6,20.4,21.4,18.1,18.6,19.6,19.8,19.9,20.8,19.2,19.6,17.8,17.7,19.2,19.8,22,22.2,21.1,20.7,19.5,17.9,22.2,20.9,20.9,21.2,22.2,21.4,23.5,23,21.5,21.3,24.3,23.9,22.8,22.4,20.3,18.3,23.7,22.8,23.3,22.3,19.6,17.8,18,16.4,17.3,16,16.8,16.4,18.2,17.7,16.5,16.6,16,16.2,18.4,18.3),dim=c(2,78),dimnames=list(c('invbe','uitvbe'),1:78)) > y <- array(NA,dim=c(2,78),dimnames=list(c('invbe','uitvbe'),1:78)) > 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' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > z <- as.data.frame(t(y)) > postscript(file="/var/www/rcomp/tmp/1t2hy1257802200.ps",horizontal=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,] 11.9 11.7 [2,] 15.7 16.2 [3,] 17.7 17.8 [4,] 19.3 19.6 [5,] 24.3 23.9 $n [1] 78 78 $conf [,1] [,2] [1,] 17.05596 17.19174 [2,] 18.34404 18.40826 $out numeric(0) $group numeric(0) $names [1] "invbe" "uitvbe" > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/www/rcomp/tmp/2ms0q1257802200.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/www/rcomp/tmp/3r9xy1257802200.tab") > > system("convert tmp/1t2hy1257802200.ps tmp/1t2hy1257802200.png") > > > proc.time() user system elapsed 0.500 0.330 0.979