R version 2.7.2 (2008-08-25) 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.00 + ,86.4 + ,99.9 + ,62.8 + ,94.7 + ,80.6 + ,99.9 + ,87.00 + ,101.00 + ,104.1 + ,100.00 + ,79.2 + ,109.4 + ,108.2 + ,100.1 + ,112.00 + ,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.00 + ,106.00 + ,96.4 + ,100.00 + ,59.4 + ,103.1 + ,91.1 + ,100.1 + ,73.8 + ,102.00 + ,84.4 + ,100.2 + ,57.4 + ,104.7 + ,86.4 + ,100.00 + ,81.1 + ,86.00 + ,88.00 + ,100.1 + ,46.6 + ,92.1 + ,75.1 + ,100.1 + ,41.4 + ,106.9 + ,109.7 + ,100.1 + ,71.2 + ,112.6 + ,103.00 + ,100.5 + ,67.9 + ,101.7 + ,82.1 + ,100.5 + ,72.00 + ,92.00 + ,68.00 + ,100.5 + ,145.5 + ,97.4 + ,96.4 + ,96.3 + ,39.7 + ,97.00 + ,94.3 + ,96.3 + ,51.9 + ,105.4 + ,90.00 + ,96.8 + ,73.7 + ,102.7 + ,88.00 + ,96.8 + ,70.9 + ,98.1 + ,76.1 + ,96.9 + ,60.8 + ,104.5 + ,82.5 + ,96.8 + ,61.00 + ,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.00 + ,58.5 + ,98.6 + ,80.7 + ,97.00 + ,59.8 + ,96.9 + ,70.5 + ,97.00 + ,80.9 + ,95.1 + ,87.8 + ,96.8 + ,37.3 + ,97.00 + ,89.5 + ,96.9 + ,44.6 + ,112.7 + ,99.6 + ,97.2 + ,48.7 + ,102.9 + ,84.2 + ,97.3 + ,54.00 + ,97.4 + ,75.1 + ,97.3 + ,49.5 + ,111.4 + ,92.00 + ,97.2 + ,61.6 + ,87.4 + ,80.8 + ,97.3 + ,35.00 + ,96.8 + ,73.1 + ,97.3 + ,35.7 + ,114.1 + ,99.8 + ,97.3 + ,51.3 + ,110.3 + ,90.00 + ,97.3 + ,49.00 + ,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.00 + ,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.00 + ,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('totale_industrie' + ,'kledingproductie' + ,'afzetprijsindex' + ,'investeringen') + ,1:61)) > y <- array(NA,dim=c(4,61),dimnames=list(c('totale_industrie','kledingproductie','afzetprijsindex','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)) > postscript(file="/var/www/html/rcomp/tmp/1gzin1225227176.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,] 86.0 66.5 96.3 28.4 [2,] 96.2 80.6 96.8 42.8 [3,] 101.7 87.3 97.3 54.5 [4,] 106.0 94.1 100.0 72.0 [5,] 115.5 109.7 100.6 112.0 $n [1] 61 61 61 61 $conf [,1] [,2] [,3] [,4] [1,] 99.71748 84.56897 96.65265 48.59289 [2,] 103.68252 90.03103 97.94735 60.40711 $out [1] 81.0 80.9 132.1 145.5 $group [1] 1 1 4 4 $names [1] "totale_industrie" "kledingproductie" "afzetprijsindex" "investeringen" Warning message: In bxp(list(stats = c(86, 96.2, 101.7, 106, 115.5, 66.5, 80.6, 87.3, : 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/2b3gv1225227176.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/3kw1y1225227176.tab") > > system("convert tmp/1gzin1225227176.ps tmp/1gzin1225227176.png") > > > proc.time() user system elapsed 0.606 0.162 0.682