R version 2.7.0 (2008-04-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(109.20,72.50,88.60,59.40,94.30,85.70,98.30,88.20,86.40,62.80,80.60,87.00,104.10,79.20,108.20,112.00,93.40,79.20,71.90,132.10,94.10,40.10,94.90,69.00,96.40,59.40,91.10,73.80,84.40,57.40,86.40,81.10,88.00,46.60,75.10,41.40,109.70,71.20,103.00,67.90,82.10,72.00,68.00,145.50,96.40,39.70,94.30,51.90,90.00,73.70,88.00,70.90,76.10,60.80,82.50,61.00,81.40,54.50,66.50,39.10,97.20,66.60,94.10,58.50,80.70,59.80,70.50,80.90,87.80,37.30,89.50,44.60,99.60,48.70,84.20,54.00,75.10,49.50,92.00,61.60,80.80,35.00,73.10,35.70,99.80,51.30,90.00,49.00,83.10,41.50,72.40,72.50,78.80,42.10,87.30,44.10,91.00,45.10,80.10,50.30,73.60,40.90,86.40,47.20,74.50,36.90,71.20,40.90,92.40,38.30,81.50,46.30,85.30,28.40,69.90,78.40,84.20,36.80,90.70,50.70,100.30,42.80),dim=c(2,61),dimnames=list(c('Totaleproductie','Investeringen'),1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('Totaleproductie','Investeringen'),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' > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/1ynt81226001893.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > (r<-boxplot(log(z) ,xlab=xlab,ylab=ylab,main=main,notch=TRUE,col=par1)) $stats [,1] [,2] [1,] 4.197202 3.346389 [2,] 4.389499 3.756538 [3,] 4.469350 3.998201 [4,] 4.544358 4.276666 [5,] 4.697749 4.980176 $n [1] 61 61 $conf [,1] [,2] [1,] 4.438023 3.892980 [2,] 4.500678 4.103422 $out numeric(0) $group numeric(0) $names [1] "Totaleproductie" "Investeringen" > 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/2ya1l1226001893.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/32bm51226001894.tab") > > system("convert tmp/1ynt81226001893.ps tmp/1ynt81226001893.png") > > > proc.time() user system elapsed 1.104 0.230 1.171