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(100.64,101,100.63,100.88,100.43,100.55,100.80,100.83,101.33,101.51,101.88,102.16,101.85,102.39,102.04,102.54,102.22,102.85,102.63,103.47,102.65,103.57,102.54,103.69,102.37,103.5,102.68,103.47,102.76,103.45,102.82,103.48,103.31,103.93,103.23,103.89,103.60,104.4,103.95,104.79,103.93,104.77,104.25,105.13,104.38,105.26,104.36,104.96,104.32,104.75,104.58,105.01,104.68,105.15,104.92,105.2,105.46,105.77,105.23,105.78,105.58,106.26,105.34,106.13,105.28,106.12,105.70,106.57,105.67,106.44,105.71,106.54,106.19,107.1,106.93,108.1,107.44,108.4,107.85,108.84,108.71,109.62,109.32,110.42,109.49,110.67,110.20,111.66,110.62,112.28,111.22,112.87,110.88,112.18,111.15,112.16,111.29,112.36,111.09,111.49,111.24,111.25,111.45,111.36,111.75,111.74,111.07,111.1,111.17,111.33,110.96,111.25,110.50,111.4,110.48,110.97,110.66,111.32,110.46,111.02),dim=c(2,60),dimnames=list(c('Gezondheidsindex','Consumptieprijzenindex'),1:60)) > y <- array(NA,dim=c(2,60),dimnames=list(c('Gezondheidsindex','Consumptieprijzenindex'),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/rcomp/tmp/1q40m1257937119.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,] 100.43 100.55 [2,] 102.79 103.63 [3,] 105.31 105.95 [4,] 110.47 111.06 [5,] 111.75 112.87 $n [1] 60 60 $conf [,1] [,2] [1,] 103.7435 104.4344 [2,] 106.8765 107.4656 $out numeric(0) $group numeric(0) $names [1] "Gezondheidsindex" "Consumptieprijzenindex" > 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/2fij91257937119.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/3nd671257937119.tab") > > system("convert tmp/1q40m1257937119.ps tmp/1q40m1257937119.png") > > > proc.time() user system elapsed 0.320 0.310 0.667