R version 2.8.0 (2008-10-20) 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(26.8,26.4,27.3,27.7,28.5,29.2,28.5,28.6,23.5,27.4,24.3,28.6,25,26.2,25.3,26,26.5,26.6,25.5,25.1,25.8,24.7,24,25,23.5,23.6,19.2,21.9,19.2,19.9,15.7,14.3,21.8,14.4,21,13.6,19.7,12.3,20,12,14,8.1,16.5,4.6,14.5,4.5,16.5,6.6,14.7,9.1,13.7,9.2,12,12.7,10.2,13.5,10.2,14.9,10.5,14.7,12.7,13.2,6.7,11.6,9.5,11.6,14.5,10.3,11.7,11.2,15.7,10.4,10.7,8.5,14.2,9,11.5,5.1,12.7,3.8,12.5,5.6,10,2.7,11,4.3,14.5,7.4,19.5,10.6,18.2,11.9,18.7,14.6,16.7,15.4,15.7,15.1,16,16,18.2,16.9,19.5,18.7,22.3,20,20.3,19.6,20,23,19.2,20.4,21.8,21.2,21.3,20.6,21.5,18.7,19.5,16.8,19.5,18.2,19.7,16.4,18.7,15.8,19.7,13.1,20,12,19.7,12.5,19.2,11.8,19.7,12.4,22,16.3,21.8,18.3,22.8,19.3,21,20.2,25,20.6,23.3,22.2,25,23.3,26.8,25.3,25.3,25.5,26.5,26.3,27.8,27.7,22,26.5,22.3,25.5,28,26.9,25,25.7,27.3,26.9,25.8,26.1),dim=c(2,85),dimnames=list(c('bouwnijverheid','gezamelijk'),1:85)) > y <- array(NA,dim=c(2,85),dimnames=list(c('bouwnijverheid','gezamelijk'),1:85)) > 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/html/freestat/rcomp/tmp/1moxs1257956686.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,] 6.7 2.7 [2,] 15.7 11.9 [3,] 19.7 16.4 [4,] 23.5 24.7 [5,] 28.5 29.2 $n [1] 85 85 $conf [,1] [,2] [1,] 18.36327 14.2064 [2,] 21.03673 18.5936 $out numeric(0) $group numeric(0) $names [1] "bouwnijverheid" "gezamelijk" > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/html/freestat/rcomp/tmp/25xjn1257956686.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/html/freestat/rcomp/tmp/3z36p1257956686.tab") > > system("convert tmp/1moxs1257956686.ps tmp/1moxs1257956686.png") > > > proc.time() user system elapsed 0.538 0.234 0.621