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(115.6,109.7,111.3,99.1,114.6,86.7,137.5,111.4,83.7,78.4,106,76.7,123.4,114.2,126.5,99.7,120,94.2,141.6,173.5,90.5,83.1,96.5,88.9,113.5,132,120.1,122.1,123.9,105.1,144.4,133.7,90.8,63.6,114.2,112.7,138.1,120.5,135,112,131.3,126.2,144.6,209.2,101.7,91,108.7,116.7,135.3,137.6,124.3,108.1,138.3,136.6,158.2,152.3,93.5,114.3,124.8,120.7,154.4,131.8,152.8,129.4,148.9,187.5,170.3,189.5,124.8,109.2,134.4,158.1,154,176.2,147.9,125.5,168.1,155,175.7,170.3,116.7,99.4,140.8,139.2,164.2,169.6,173.8,136.1,167.8,168.2,166.6,318.6,135.1,154.1,158.1,161.4,151.8,183.4,166.7,166.3,165.3,203,187,174.6,125.2,124.3,144.4,154.4,181.7,170.5,175.9,169.4,166.3,171.1,181.5,289.2,121.8,145.6,134.8,134.4,162.9,168.2),dim=c(2,61),dimnames=list(c('Omzet','Investeringen'),1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('Omzet','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: 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/16jfd1258046414.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,] 83.7 63.6 [2,] 120.1 111.4 [3,] 137.5 133.7 [4,] 158.2 168.2 [5,] 187.0 209.2 $n [1] 61 61 $conf [,1] [,2] [1,] 129.7924 122.2095 [2,] 145.2076 145.1905 $out [1] 318.6 289.2 $group [1] 2 2 $names [1] "Omzet" "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/216to1258046414.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/3qm4t1258046414.tab") > > system("convert tmp/16jfd1258046414.ps tmp/16jfd1258046414.png") > > > proc.time() user system elapsed 0.543 0.217 0.598