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,72.50,96.40,59.40,101.90,85.70,106.20,88.20,81.00,62.80,94.70,87.00,101.00,79.20,109.40,112.00,102.30,79.20,90.70,132.10,96.20,40.10,96.10,69.00,106.00,59.40,103.10,73.80,102.00,57.40,104.70,81.10,86.00,46.60,92.10,41.40,106.90,71.20,112.60,67.90,101.70,72.00,92.00,145.50,97.40,39.70,97.00,51.90,105.40,73.70,102.70,70.90,98.10,60.80,104.50,61.00,87.40,54.50,89.90,39.10,109.80,66.60,111.70,58.50,98.60,59.80,96.90,80.90,95.10,37.30,97.00,44.60,112.70,48.70,102.90,54.00,97.40,49.50,111.40,61.60,87.40,35.00,96.80,35.70,114.10,51.30,110.30,49.00,103.90,41.50,101.60,72.50,94.60,42.10,95.90,44.10,104.70,45.10,102.80,50.30,98.10,40.90,113.90,47.20,80.90,36.90,95.70,40.90,113.20,38.30,105.90,46.30,108.80,28.40,102.30,78.40,99.00,36.80,100.70,50.70,115.50,42.80),dim=c(2,61),dimnames=list(c('Totale','Investeringen'),1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('Totale','Investeringen'),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/freestat/rcomp/tmp/1m5ga1225295384.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 28.4 [2,] 96.2 42.8 [3,] 101.7 54.5 [4,] 106.0 72.0 [5,] 115.5 112.0 $n [1] 61 61 $conf [,1] [,2] [1,] 99.71748 48.59289 [2,] 103.68252 60.40711 $out [1] 81.0 80.9 132.1 145.5 $group [1] 1 1 2 2 $names [1] "Totale" "Investeringen" > 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/2beei1225295384.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/3ui2y1225295384.tab") > > system("convert tmp/1m5ga1225295384.ps tmp/1m5ga1225295384.png") > > > proc.time() user system elapsed 0.823 0.225 0.888