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(96.8,108.8,114.1,128.4,110.3,121.1,103.9,119.5,101.6,128.7,94.6,108.7,95.9,105.5,104.7,119.8,102.8,111.3,98.1,110.6,113.9,120.1,80.9,97.5,95.7,107.7,113.2,127.3,105.9,117.2,108.8,119.8,102.3,116.2,99,111,100.7,112.4,115.5,130.6,100.7,109.1,109.9,118.8,114.6,123.9,85.4,101.6,100.5,112.8,114.8,128,116.5,129.6,112.9,125.8,102,119.5,106,115.7,105.3,113.6,118.8,129.7,106.1,112,109.3,116.8,117.2,127,92.5,112.1,104.2,114.2,112.5,121.1,122.4,131.6,113.3,125,100,120.4,110.7,117.7,112.8,117.5,109.8,120.6,117.3,127.5,109.1,112.3,115.9,124.5,96,115.2,99.8,104.7,116.8,130.9,115.7,129.2,99.4,113.5,94.3,125.6,91,107.6,93.2,107,103.1,121.6,94.1,110.7,91.8,106.3,102.7,118.6,82.6,104.6,89.1,103.5),dim=c(2,61),dimnames=list(c('Tot_Industriele_productie','Tot_productie_consumptiegdn'),1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('Tot_Industriele_productie','Tot_productie_consumptiegdn'),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/1v84t1257945929.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,] 80.9 97.5 [2,] 98.1 111.0 [3,] 104.2 117.5 [4,] 112.9 124.5 [5,] 122.4 131.6 $n [1] 61 61 $conf [,1] [,2] [1,] 101.2060 114.7690 [2,] 107.1940 120.2310 $out numeric(0) $group numeric(0) $names [1] "Tot_Industriele_productie" "Tot_productie_consumptiegdn" > 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/2llf91257945929.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/3j46w1257945929.tab") > > system("convert tmp/1v84t1257945929.ps tmp/1v84t1257945929.png") > > > proc.time() user system elapsed 0.365 0.148 0.450