R version 2.8.0 (2008-10-20) 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(147768 + ,267037 + ,298427 + ,565464 + ,137507 + ,258113 + ,289231 + ,547344 + ,136919 + ,262813 + ,291975 + ,554788 + ,136151 + ,267413 + ,294912 + ,562325 + ,133001 + ,267366 + ,293488 + ,560854 + ,125554 + ,264777 + ,290555 + ,555332 + ,119647 + ,258863 + ,284736 + ,543599 + ,114158 + ,254844 + ,281818 + ,536662 + ,116193 + ,254868 + ,287854 + ,542722 + ,152803 + ,277267 + ,316263 + ,593530 + ,161761 + ,285351 + ,325412 + ,610763 + ,160942 + ,286602 + ,326011 + ,612613 + ,149470 + ,283042 + ,328282 + ,611324 + ,139208 + ,276687 + ,317480 + ,594167 + ,134588 + ,277915 + ,317539 + ,595454 + ,130322 + ,277128 + ,313737 + ,590865 + ,126611 + ,277103 + ,312276 + ,589379 + ,122401 + ,275037 + ,309391 + ,584428 + ,117352 + ,270150 + ,302950 + ,573100 + ,112135 + ,267140 + ,300316 + ,567456 + ,112879 + ,264993 + ,304035 + ,569028 + ,148729 + ,287259 + ,333476 + ,620735 + ,157230 + ,291186 + ,337698 + ,628884 + ,157221 + ,292300 + ,335932 + ,628232 + ,146681 + ,288186 + ,323931 + ,612117 + ,136524 + ,281477 + ,313927 + ,595404 + ,132111 + ,282656 + ,314485 + ,597141 + ,125326 + ,280190 + ,313218 + ,593408 + ,122716 + ,280408 + ,309664 + ,590072 + ,116615 + ,276836 + ,302963 + ,579799 + ,113719 + ,275216 + ,298989 + ,574205 + ,110737 + ,274352 + ,298423 + ,572775 + ,112093 + ,271311 + ,301631 + ,572942 + ,143565 + ,289802 + ,329765 + ,619567 + ,149946 + ,290726 + ,335083 + ,625809 + ,149147 + ,292300 + ,327616 + ,619916 + ,134339 + ,278506 + ,309119 + ,587625 + ,122683 + ,269826 + ,295916 + ,565742 + ,115614 + ,265861 + ,291413 + ,557274 + ,116566 + ,269034 + ,291542 + ,560576 + ,111272 + ,264176 + ,284678 + ,548854 + ,104609 + ,255198 + ,276475 + ,531673 + ,101802 + ,253353 + ,272566 + ,525919 + ,94542 + ,246057 + ,264981 + ,511038 + ,93051 + ,235372 + ,263290 + ,498662 + ,124129 + ,258556 + ,296806 + ,555362 + ,130374 + ,260993 + ,303598 + ,564591 + ,123946 + ,254663 + ,286994 + ,541657 + ,114971 + ,250643 + ,276427 + ,527070 + ,105531 + ,243422 + ,266424 + ,509846 + ,104919 + ,247105 + ,267153 + ,514258 + ,104782 + ,248541 + ,268381 + ,516922 + ,101281 + ,245039 + ,262522 + ,507561 + ,94545 + ,237080 + ,255542 + ,492622 + ,93248 + ,237085 + ,253158 + ,490243 + ,84031 + ,225554 + ,243803 + ,469357 + ,87486 + ,226839 + ,250741 + ,477580 + ,115867 + ,247934 + ,280445 + ,528379 + ,120327 + ,248333 + ,285257 + ,533590 + ,117008 + ,246969 + ,270976 + ,517945 + ,108811 + ,245098 + ,261076 + ,506174) + ,dim=c(4 + ,61) + ,dimnames=list(c('Jonger_dan_25' + ,'Mannen' + ,'Vrouwen' + ,'Totaal') + ,1:61)) > y <- array(NA,dim=c(4,61),dimnames=list(c('Jonger_dan_25','Mannen','Vrouwen','Totaal'),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/1nhuz1229774523.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,] 84031 225554 243803 469357 [2,] 112093 253353 280445 531673 [3,] 122401 267140 296806 564591 [4,] 136524 277915 313737 593408 [5,] 161761 292300 337698 628884 $n [1] 61 61 61 61 $conf [,1] [,2] [,3] [,4] [1,] 117458.7 262171.1 290071.1 552102.1 [2,] 127343.3 272108.9 303540.9 577079.9 $out numeric(0) $group numeric(0) $names [1] "Jonger_dan_25" "Mannen" "Vrouwen" "Totaal" > 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/2gyo81229774523.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/3aalh1229774523.tab") > system("convert tmp/1nhuz1229774523.ps tmp/1nhuz1229774523.png") > > > proc.time() user system elapsed 0.397 0.154 0.479