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(110.4 + ,109.2 + ,99.9 + ,72.5 + ,96.4 + ,88.6 + ,99.8 + ,59.4 + ,101.9 + ,94.3 + ,99.8 + ,85.7 + ,106.2 + ,98.3 + ,100.3 + ,88.2 + ,81 + ,86.4 + ,99.9 + ,62.8 + ,94.7 + ,80.6 + ,99.9 + ,87 + ,101 + ,104.1 + ,100 + ,79.2 + ,109.4 + ,108.2 + ,100.1 + ,112 + ,102.3 + ,93.4 + ,100.1 + ,79.2 + ,90.7 + ,71.9 + ,100.2 + ,132.1 + ,96.2 + ,94.1 + ,100.3 + ,40.1 + ,96.1 + ,94.9 + ,100.6 + ,69 + ,106 + ,96.4 + ,100 + ,59.4 + ,103.1 + ,91.1 + ,100.1 + ,73.8 + ,102 + ,84.4 + ,100.2 + ,57.4 + ,104.7 + ,86.4 + ,100 + ,81.1 + ,86 + ,88 + ,100.1 + ,46.6 + ,92.1 + ,75.1 + ,100.1 + ,41.4 + ,106.9 + ,109.7 + ,100.1 + ,71.2 + ,112.6 + ,103 + ,100.5 + ,67.9 + ,101.7 + ,82.1 + ,100.5 + ,72 + ,92 + ,68 + ,100.5 + ,145.5 + ,97.4 + ,96.4 + ,96.3 + ,39.7 + ,97 + ,94.3 + ,96.3 + ,51.9 + ,105.4 + ,90 + ,96.8 + ,73.7 + ,102.7 + ,88 + ,96.8 + ,70.9 + ,98.1 + ,76.1 + ,96.9 + ,60.8 + ,104.5 + ,82.5 + ,96.8 + ,61 + ,87.4 + ,81.4 + ,96.8 + ,54.5 + ,89.9 + ,66.5 + ,96.8 + ,39.1 + ,109.8 + ,97.2 + ,96.8 + ,66.6 + ,111.7 + ,94.1 + ,97 + ,58.5 + ,98.6 + ,80.7 + ,97 + ,59.8 + ,96.9 + ,70.5 + ,97 + ,80.9 + ,95.1 + ,87.8 + ,96.8 + ,37.3 + ,97 + ,89.5 + ,96.9 + ,44.6 + ,112.7 + ,99.6 + ,97.2 + ,48.7 + ,102.9 + ,84.2 + ,97.3 + ,54 + ,97.4 + ,75.1 + ,97.3 + ,49.5 + ,111.4 + ,92 + ,97.2 + ,61.6 + ,87.4 + ,80.8 + ,97.3 + ,35 + ,96.8 + ,73.1 + ,97.3 + ,35.7 + ,114.1 + ,99.8 + ,97.3 + ,51.3 + ,110.3 + ,90 + ,97.3 + ,49 + ,103.9 + ,83.1 + ,97.3 + ,41.5 + ,101.6 + ,72.4 + ,97.3 + ,72.5 + ,94.6 + ,78.8 + ,98.1 + ,42.1 + ,95.9 + ,87.3 + ,96.8 + ,44.1 + ,104.7 + ,91 + ,96.8 + ,45.1 + ,102.8 + ,80.1 + ,96.8 + ,50.3 + ,98.1 + ,73.6 + ,96.8 + ,40.9 + ,113.9 + ,86.4 + ,96.8 + ,47.2 + ,80.9 + ,74.5 + ,96.8 + ,36.9 + ,95.7 + ,71.2 + ,96.8 + ,40.9 + ,113.2 + ,92.4 + ,96.8 + ,38.3 + ,105.9 + ,81.5 + ,96.8 + ,46.3 + ,108.8 + ,85.3 + ,96.8 + ,28.4 + ,102.3 + ,69.9 + ,96.8 + ,78.4 + ,99 + ,84.2 + ,96.9 + ,36.8 + ,100.7 + ,90.7 + ,97.1 + ,50.7 + ,115.5 + ,100.3 + ,97.1 + ,42.8) + ,dim=c(4 + ,61) + ,dimnames=list(c('Totaalproductie' + ,'Kledijproductie' + ,'Afzetprijzen' + ,'Investeringen') + ,1:61)) > y <- array(NA,dim=c(4,61),dimnames=list(c('Totaalproductie','Kledijproductie','Afzetprijzen','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' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Notched Boxplots (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_notchedbox1.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > z <- as.data.frame(t(y)) > z<-log(z) > postscript(file="/var/www/html/rcomp/tmp/1ng2j1225409532.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] [,3] [,4] [1,] 4.454347 4.197202 4.567468 3.346389 [2,] 4.566429 4.389499 4.572647 3.756538 [3,] 4.622027 4.469350 4.577799 3.998201 [4,] 4.663439 4.544358 4.605170 4.276666 [5,] 4.749271 4.697749 4.611152 4.980176 $n [1] 61 61 61 61 $conf [,1] [,2] [,3] [,4] [1,] 4.602402 4.438023 4.571220 3.892980 [2,] 4.641652 4.500678 4.584378 4.103422 $out [1] 4.394449 4.393214 $group [1] 1 1 $names [1] "Totaalproductie" "Kledijproductie" "Afzetprijzen" "Investeringen" Warning message: In bxp(list(stats = c(4.45434729625351, 4.56642935767166, 4.62202730305451, : some notches went outside hinges ('box'): maybe set notch=FALSE > 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/2v4f51225409532.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/3albn1225409532.tab") > > system("convert tmp/1ng2j1225409532.ps tmp/1ng2j1225409532.png") > > > proc.time() user system elapsed 1.151 0.250 1.218