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(100 + ,100 + ,100 + ,100.00 + ,100 + ,102.9268293 + ,103.355751 + ,100.00 + ,100 + ,101.9512195 + ,105.9736792 + ,102.00 + ,100 + ,100 + ,108.1650198 + ,94.00 + ,100 + ,101.4634146 + ,111.7463979 + ,97.00 + ,100 + ,100.4878049 + ,112.6764753 + ,98.00 + ,100 + ,100.4878049 + ,113.1513081 + ,108.00 + ,100 + ,101.4634146 + ,111.0455752 + ,100.00 + ,100 + ,100.9756098 + ,112.3532698 + ,87.00 + ,100 + ,100.4878049 + ,114.68862 + ,98.00 + ,100 + ,100.9756098 + ,118.1517434 + ,106.00 + ,100 + ,100.4878049 + ,118.8717915 + ,106.00 + ,100 + ,101.9512195 + ,119.535977 + ,110.00 + ,100 + ,100.9756098 + ,122.0269447 + ,100.00 + ,100 + ,101.9512195 + ,126.7491548 + ,88.00 + ,125 + ,111.2195122 + ,133.0195592 + ,104.00 + ,125 + ,113.6585366 + ,138.3167196 + ,104.00 + ,125 + ,114.6341463 + ,142.1219112 + ,93.00 + ,150 + ,122.9268293 + ,141.3075494 + ,109.00 + ,150 + ,128.2926829 + ,137.881426 + ,106.00 + ,150 + ,125.8536585 + ,129.5042006 + ,109.00 + ,175 + ,131.7073171 + ,134.2739303 + ,98.00 + ,175 + ,137.0731707 + ,140.1017862 + ,115.00 + ,200 + ,144.8780488 + ,144.0132619 + ,121.00 + ,200 + ,148.2926829 + ,150.1226077 + ,114.00 + ,225 + ,160 + ,152.3436933 + ,109.00 + ,225 + ,162.4390244 + ,155.6497483 + ,94.00 + ,250 + ,170.7317073 + ,161.2004672 + ,100.00 + ,250 + ,173.6585366 + ,163.3308667 + ,105.00 + ,250 + ,174.1463415 + ,158.0471278 + ,110.00 + ,275 + ,180 + ,166.5458727 + ,107.00 + ,275 + ,186.3414634 + ,170.3797211 + ,103.00 + ,275 + ,184.8780488 + ,167.6388224 + ,102.00 + ,300 + ,193.1707317 + ,165.5145896 + ,110.00 + ,300 + ,198.0487805 + ,152.4441736 + ,109.00 + ,300 + ,197.5609756 + ,155.8528853 + ,104.00 + ,300 + ,196.5853659 + ,160.8856048 + ,104.00 + ,300 + ,192.195122 + ,148.913217 + ,99.00 + ,300 + ,196.097561 + ,149.3303733 + ,96.00 + ,300 + ,189.2682927 + ,139.4568261 + ,104.00 + ,300 + ,196.097561 + ,134.9765667 + ,109.00 + ,300 + ,196.5853659 + ,133.286902 + ,94.00 + ,300 + ,199.5121951 + ,139.9331099 + ,91.00 + ,300 + ,194.6341463 + ,137.881426 + ,87.00 + ,300 + ,195.6097561 + ,127.1191544 + ,92.00 + ,300 + ,195.6097561 + ,110.005949 + ,85.00 + ,325 + ,204.3902439 + ,110.5293896 + ,88.00 + ,325 + ,209.7560976 + ,107.457305 + ,82.00 + ,325 + ,208.2926829 + ,79.72474934 + ,80.00 + ,325 + ,186.3414634 + ,73.07310031 + ,68.00 + ,275 + ,153.6585366 + ,67.5731656 + ,52.00 + ,200 + ,121.4634146 + ,69.11773241 + ,45.00 + ,100 + ,88.29268293 + ,65.69269722 + ,49.00 + ,100 + ,61.46341463 + ,60.58089932 + ,42.00 + ,50 + ,51.70731707 + ,67.63156749 + ,45.00 + ,25 + ,40.97560976 + ,74.43593204 + ,38.00 + ,25 + ,38.04878049 + ,73.62265848 + ,45.00 + ,25 + ,34.14634146 + ,75.11825476 + ,48.00 + ,25 + ,17.56097561 + ,83.19222566 + ,54.00 + ,25 + ,17.07317073 + ,88.6283173 + ,63.00) + ,dim=c(4 + ,60) + ,dimnames=list(c('CBI' + ,'market-I' + ,'bel20' + ,'conjunctuur') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('CBI','market-I','bel20','conjunctuur'),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 = 'yellow' > 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/1grs41258131824.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,] 25 17.07317 60.5809 63.0 [2,] 100 100.97561 106.7155 87.0 [3,] 175 130.00000 126.9342 99.5 [4,] 300 190.73171 146.4632 106.0 [5,] 325 209.75610 170.3797 121.0 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 134.2046 111.6918 118.8265 95.62443 [2,] 215.7954 148.3082 135.0418 103.37557 $out [1] 52 45 49 42 45 38 45 48 54 $group [1] 4 4 4 4 4 4 4 4 4 $names [1] "CBI" "market-I" "bel20" "conjunctuur" > 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/26wbl1258131824.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/33kg81258131824.tab") > > system("convert tmp/1grs41258131824.ps tmp/1grs41258131824.png") > > > proc.time() user system elapsed 0.405 0.173 0.505