R version 2.8.1 (2008-12-22) 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(4.79,2.86,5.95,2.55,5.46,2.27,5.75,2.26,5.15,2.57,4.96,3.07,5.28,2.76,5.73,2.51,5.75,2.87,5.88,3.14,6.3,3.11,6.74,3.16,6.75,2.47,7.34,2.57,6.64,2.89,6.62,2.63,6.32,2.38,5.32,1.69,5.68,1.96,6.18,2.19,5.02,1.87,2.1,1.6,4,1.63,3,1.22,4.73,1.21,5.14,1.49,5.81,1.64,6.24,1.66,4.49,1.77,4.22,1.82,4.88,1.78,5.18,1.28,5.19,1.29,5.06,1.37,4.65,1.12,4.83,1.51,4.6,2.24,4.72,2.94,4.33,3.09,4.97,3.46,5.37,3.64,4.19,4.39,4.54,4.15,5.82,5.21,5.49,5.8,3.28,5.91,5.11,5.39,6.24,5.46,6.41,4.72,6.43,3.14,8.42,2.63,8.23,2.32,3.17,1.93,2.72,0.62,3,0.6,3.47,-0.37,3.88,-1.1,3.43,-1.68,4.06,-0.78),dim=c(2,59),dimnames=list(c('Interestvoet','Inflatie'),1:59)) > y <- array(NA,dim=c(2,59),dimnames=list(c('Interestvoet','Inflatie'),1:59)) > 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/rcomp/tmp/1b3jd1257435577.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,] 2.720 -0.370 [2,] 4.515 1.615 [3,] 5.150 2.320 [4,] 5.915 3.080 [5,] 7.340 5.210 $n [1] 59 59 $conf [,1] [,2] [1,] 4.862022 2.018652 [2,] 5.437978 2.621348 $out [1] 2.10 8.42 8.23 5.80 5.91 5.39 5.46 -1.10 -1.68 -0.78 $group [1] 1 1 1 2 2 2 2 2 2 2 $names [1] "Interestvoet" "Inflatie" > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/2hp3v1257435577.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/rcomp/tmp/387yo1257435577.tab") > > system("convert tmp/1b3jd1257435577.ps tmp/1b3jd1257435577.png") > > > proc.time() user system elapsed 0.430 0.230 0.553