R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(2.03,0.86,2.86,0.88,2.55,0.88,2.27,0.88,2.26,0.87,2.57,0.88,3.07,0.87,2.76,0.85,2.51,0.84,2.87,0.83,3.14,0.86,3.11,0.87,3.16,0.85,2.47,0.89,2.57,0.98,2.89,1.01,2.63,1,2.38,1.01,1.69,1.05,1.96,1,2.19,0.99,1.87,1.02,1.6,1.11,1.63,1.15,1.22,1.18,1.21,1.2,1.49,1.22,1.64,1.2,1.66,1.23,1.77,1.23,1.82,1.21,1.78,1.25,1.28,1.2,1.29,1.2,1.37,1.21,1.12,1.25,1.51,1.23,2.24,1.2,2.94,1.18,3.09,1.16,3.46,1.12,3.64,1.11,4.39,1.1,4.15,1.08,5.21,1.01,5.8,1.01,5.91,0.99,5.39,1.07,5.46,1.13,4.72,1.09,3.14,0.95,2.63,0.79,2.32,0.73,1.93,0.7,0.62,0.65,0.6,0.61,-0.37,0.53,-1.1,0.51,-1.68,0.41,-0.78,0.42),dim=c(2,60),dimnames=list(c('Inflatie','Depositorente'),1:60)) > y <- array(NA,dim=c(2,60),dimnames=list(c('Inflatie','Depositorente'),1:60)) > 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/175vm1257763942.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,] -0.370 0.410 [2,] 1.615 0.865 [3,] 2.295 1.010 [4,] 3.080 1.170 [5,] 5.210 1.250 $n [1] 60 60 $conf [,1] [,2] [1,] 1.996174 0.947787 [2,] 2.593826 1.072213 $out [1] 5.80 5.91 5.39 5.46 -1.10 -1.68 -0.78 $group [1] 1 1 1 1 1 1 1 $names [1] "Inflatie" "Depositorente" > 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/2mwpc1257763942.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/3r0fp1257763942.tab") > > system("convert tmp/175vm1257763942.ps tmp/175vm1257763942.png") > > > proc.time() user system elapsed 0.369 0.147 0.544