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(98.4 + ,106.3 + ,101.7 + ,98.1 + ,106.4 + ,101.9 + ,97.5 + ,106.3 + ,102 + ,96.8 + ,106.1 + ,102.2 + ,96.3 + ,105.9 + ,102.4 + ,96.3 + ,105.9 + ,102.6 + ,96.8 + ,106 + ,102.6 + ,97.3 + ,106.1 + ,102.5 + ,98.1 + ,106.2 + ,102.5 + ,99.3 + ,106.2 + ,102.6 + ,100.7 + ,106.2 + ,102.7 + ,101.7 + ,106.1 + ,102.9 + ,101.8 + ,106.1 + ,103.1 + ,101.4 + ,106.1 + ,103.2 + ,101 + ,106.2 + ,103.2 + ,101 + ,106.5 + ,103 + ,101.4 + ,106.8 + ,102.8 + ,102.2 + ,106.9 + ,102.6 + ,103.2 + ,106.9 + ,102.4 + ,104.1 + ,106.8 + ,102.2 + ,104.7 + ,106.8 + ,101.9 + ,105 + ,106.8 + ,101.6 + ,105 + ,106.7 + ,101.3 + ,104.7 + ,106.5 + ,101.2 + ,104.1 + ,106.3 + ,111.7 + ,103.7 + ,106 + ,111.4 + ,103.6 + ,105.7 + ,111.1 + ,103.3 + ,105.4 + ,111.1 + ,103 + ,105.2 + ,111.3 + ,102.7 + ,105 + ,111.9 + ,102.2 + ,104.8 + ,112.4 + ,101.8 + ,104.7 + ,112.9 + ,101.7 + ,104.5 + ,113 + ,101.6 + ,104.4 + ,113 + ,101.5 + ,104.4 + ,112.7 + ,101.7 + ,104.5 + ,112.4 + ,102.3 + ,104.6 + ,112.3 + ,103.1 + ,104.6 + ,112.5 + ,103.8 + ,104.7 + ,112.8 + ,104.3 + ,104.7 + ,113.2 + ,104.6 + ,104.6 + ,114 + ,104.9 + ,104.6 + ,114.9 + ,105 + ,104.8 + ,115.6 + ,104.7 + ,105.1 + ,115.5 + ,104.4 + ,105.4 + ,115 + ,103.7 + ,105.7 + ,114.9 + ,102.9 + ,105.8 + ,115.2 + ,102 + ,106 + ,115.4 + ,101.2 + ,106.3 + ,115 + ,100.5 + ,106.6 + ,114.6 + ,100.1 + ,106.8 + ,114.5 + ,100 + ,107 + ,114.4 + ,100 + ,107.3 + ,113.9 + ,99.9 + ,107.7 + ,113.2 + ,99.8 + ,108.1 + ,112.7 + ,99.7 + ,108.4 + ,112.6 + ,99.8 + ,108.7 + ,112.5 + ,100 + ,109 + ,112.3 + ,100.5 + ,109.6 + ,112 + ,101 + ,110.3 + ,111.7 + ,101.5 + ,111.1 + ,119.2) + ,dim=c(3 + ,61) + ,dimnames=list(c('intermediaire_goederen' + ,'investeringsgoederen' + ,'consumptiegoederen') + ,1:61)) > y <- array(NA,dim=c(3,61),dimnames=list(c('intermediaire_goederen','investeringsgoederen','consumptiegoederen'),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/rcomp/tmp/1s6lq1229176318.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] [,3] [1,] 96.3 104.4 101.2 [2,] 100.0 105.2 102.6 [3,] 101.7 106.1 111.9 [4,] 103.6 106.8 113.2 [5,] 105.0 109.0 119.2 $n [1] 61 61 61 $conf [,1] [,2] [,3] [1,] 100.9717 105.7763 109.7556 [2,] 102.4283 106.4237 114.0444 $out [1] 109.6 110.3 111.1 $group [1] 2 2 2 $names [1] "intermediaire_goederen" "investeringsgoederen" "consumptiegoederen" Warning message: In bxp(list(stats = c(96.3, 100, 101.7, 103.6, 105, 104.4, 105.2, : 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/24wox1229176318.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/39gkk1229176318.tab") > > system("convert tmp/1s6lq1229176318.ps tmp/1s6lq1229176318.png") > > > proc.time() user system elapsed 0.370 0.181 0.838