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(21.4,26.9,26.4,27.8,26.4,28.7,29.4,30.5,34.4,31.8,24.4,31.4,26.4,34.8,25.4,32.2,31.4,33,27.4,32.4,27.4,30.5,29.4,28.6,32.4,30,26.4,28.2,22.4,27.6,19.4,24.9,21.4,23.8,23.4,24.3,23.4,23.6,25.4,24.2,28.4,28.1,27.4,30.1,21.4,31.1,17.4,32,24.4,32.4,26.4,34,22.4,35.1,14.4,37.1,18.4,37.3,25.4,38.1,29.4,39.5,26.4,38.3,26.4,37.3,20.4,38.7,26.4,37.5,29.4,38.7,33.4,37.9,32.4,36.6,35.4,35.5,34.4,37.6,36.4,38.6,32.4,40.3,34.4,39,31.4,36.8,27.4,36.5,27.4,34.1,30.4,34.2,32.4,31.9,32.4,33.7,27.4,33.5,31.4,33.8,29.4,29.9,27.4,32.3,25.4,30.5,26.4,28.5,23.4,29,18.4,23.8,22.4,17.9,17.4,9.9,17.4,3,11.4,4.2,9.4,0.4,6.4,0,0,2.4,7.8,4.2,7.9,8.2,12,9,16.9,13.6,12.3,14),dim=c(2,69),dimnames=list(c('vower','conind'),1:69)) > y <- array(NA,dim=c(2,69),dimnames=list(c('vower','conind'),1:69)) > 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 = 'Getalwaarden' > 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/1equk1257976244.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,] 9.4 9.0 [2,] 21.4 24.9 [3,] 26.4 31.4 [4,] 29.4 35.5 [5,] 36.4 40.3 $n [1] 69 69 $conf [,1] [,2] [1,] 24.87832 29.38378 [2,] 27.92168 33.41622 $out [1] 6.4 0.0 7.8 7.9 3.0 4.2 0.4 0.0 2.4 4.2 8.2 $group [1] 1 1 1 1 2 2 2 2 2 2 2 $names [1] "vower" "conind" > 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/25p2c1257976244.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/35l1f1257976244.tab") > > system("convert tmp/1equk1257976244.ps tmp/1equk1257976244.png") > > > proc.time() user system elapsed 0.410 0.280 0.668