R version 2.7.2 (2008-08-25) 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(110.40,99.90,96.40,99.80,101.90,99.80,106.20,100.30,81.00,99.90,94.70,99.90,101.00,100.00,109.40,100.10,102.30,100.10,90.70,100.20,96.20,100.30,96.10,100.60,106.00,100.00,103.10,100.10,102.00,100.20,104.70,100.00,86.00,100.10,92.10,100.10,106.90,100.10,112.60,100.50,101.70,100.50,92.00,100.50,97.40,96.30,97.00,96.30,105.40,96.80,102.70,96.80,98.10,96.90,104.50,96.80,87.40,96.80,89.90,96.80,109.80,96.80,111.70,97.00,98.60,97.00,96.90,97.00,95.10,96.80,97.00,96.90,112.70,97.20,102.90,97.30,97.40,97.30,111.40,97.20,87.40,97.30,96.80,97.30,114.10,97.30,110.30,97.30,103.90,97.30,101.60,97.30,94.60,98.10,95.90,96.80,104.70,96.80,102.80,96.80,98.10,96.80,113.90,96.80,80.90,96.80,95.70,96.80,113.20,96.80,105.90,96.80,108.80,96.80,102.30,96.80,99.00,96.90,100.70,97.10,115.50,97.10),dim=c(2,61),dimnames=list(c('Totale','afzetprijsindex'),1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('Totale','afzetprijsindex'),1:61)) > 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: Wessa P., (2007), Notched Boxplots (v1.0.4) 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 > #Technical description: Write here your technical program description > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/13wp11225294741.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,] 86.0 96.3 [2,] 96.2 96.8 [3,] 101.7 97.3 [4,] 106.0 100.0 [5,] 115.5 100.6 $n [1] 61 61 $conf [,1] [,2] [1,] 99.71748 96.65265 [2,] 103.68252 97.94735 $out [1] 81.0 80.9 $group [1] 1 1 $names [1] "Totale" "afzetprijsindex" Warning message: In bxp(list(stats = c(86, 96.2, 101.7, 106, 115.5, 96.3, 96.8, 97.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/rcomp/tmp/2wumt1225294741.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/rcomp/tmp/3rl8n1225294741.tab") > > system("convert tmp/13wp11225294741.ps tmp/13wp11225294741.png") > > > proc.time() user system elapsed 0.572 0.156 0.641