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(8.2 + ,25.5 + ,6.6 + ,6.6 + ,8.3 + ,25.5 + ,6.6 + ,6.7 + ,8.1 + ,25.5 + ,6.3 + ,6.6 + ,7.4 + ,20.9 + ,6 + ,6.4 + ,7.3 + ,20.9 + ,6 + ,6.4 + ,7.7 + ,20.9 + ,6.4 + ,6.6 + ,8 + ,22.3 + ,6.9 + ,6.8 + ,8 + ,22.3 + ,7.1 + ,6.5 + ,7.7 + ,22.3 + ,7.1 + ,6.1 + ,6.9 + ,19.9 + ,6.7 + ,5.3 + ,6.6 + ,19.9 + ,6.4 + ,4.9 + ,6.9 + ,19.9 + ,6.4 + ,5 + ,7.5 + ,24.1 + ,6.6 + ,5.5 + ,7.9 + ,24.1 + ,6.8 + ,5.8 + ,7.7 + ,24.1 + ,6.7 + ,5.8 + ,6.5 + ,13.8 + ,6.1 + ,5.2 + ,6.1 + ,13.8 + ,5.9 + ,5.1 + ,6.4 + ,13.8 + ,6.2 + ,5.3 + ,6.8 + ,16.2 + ,6.4 + ,5.5 + ,7.1 + ,16.2 + ,6.7 + ,5.8 + ,7.3 + ,16.2 + ,6.9 + ,5.8 + ,7.2 + ,18.6 + ,6.9 + ,5.5 + ,7 + ,18.6 + ,6.8 + ,5.2 + ,7 + ,18.6 + ,6.7 + ,5.2 + ,7 + ,22.4 + ,6.4 + ,5.2 + ,7.3 + ,22.4 + ,6.5 + ,5.4 + ,7.5 + ,22.4 + ,6.7 + ,5.6 + ,7.2 + ,22.6 + ,6.9 + ,5.5 + ,7.7 + ,22.6 + ,7.4 + ,5.9 + ,8 + ,22.6 + ,7.7 + ,6 + ,7.9 + ,20 + ,7.9 + ,6 + ,8 + ,20 + ,8 + ,6.1 + ,8 + ,20 + ,8 + ,6.1 + ,7.9 + ,21.8 + ,7.8 + ,5.9 + ,7.9 + ,21.8 + ,7.6 + ,5.8 + ,8 + ,21.8 + ,7.6 + ,5.6 + ,8.1 + ,28.7 + ,7.6 + ,5.5 + ,8.1 + ,28.7 + ,7.7 + ,5.5 + ,8.2 + ,28.7 + ,7.8 + ,5.9 + ,8 + ,19.5 + ,7.8 + ,6.4 + ,8.3 + ,19.5 + ,8 + ,6.8 + ,8.5 + ,19.5 + ,8.1 + ,7 + ,8.6 + ,19.4 + ,8.2 + ,7 + ,8.7 + ,19.4 + ,8.3 + ,6.9 + ,8.7 + ,19.4 + ,8.2 + ,6.7 + ,8.5 + ,21.7 + ,8 + ,6.4 + ,8.4 + ,21.7 + ,7.8 + ,6.1 + ,8.5 + ,21.7 + ,8 + ,6.1 + ,8.7 + ,26.2 + ,8.5 + ,6.1 + ,8.7 + ,26.2 + ,8.6 + ,6.1 + ,8.6 + ,26.2 + ,8.5 + ,6.1 + ,7.9 + ,19.1 + ,8 + ,5.9 + ,8.1 + ,19.1 + ,7.8 + ,6.2 + ,8.2 + ,19.1 + ,7.9 + ,6.2 + ,8.5 + ,21.3 + ,8.3 + ,6.5 + ,8.6 + ,21.3 + ,8.3 + ,6.6 + ,8.5 + ,21.3 + ,8.1 + ,6.5 + ,8.3 + ,24.1 + ,7.7 + ,6.3 + ,8.2 + ,24.1 + ,7.6 + ,6.1 + ,8.7 + ,24.1 + ,8.2 + ,6.2) + ,dim=c(4 + ,60) + ,dimnames=list(c('Twk' + ,'wkV<25' + ,'wkV>25' + ,'wkM>25') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('Twk','wkV<25','wkV>25','wkM>25'),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 = '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: 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/freestat/rcomp/tmp/12r0d1257885715.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,] 6.1 13.80 5.90 4.9 [2,] 7.3 19.45 6.65 5.5 [3,] 8.0 21.50 7.60 6.1 [4,] 8.3 23.35 8.00 6.4 [5,] 8.7 28.70 8.60 7.0 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 7.796023 20.70449 7.324631 5.91642 [2,] 8.203977 22.29551 7.875369 6.28358 $out numeric(0) $group numeric(0) $names [1] "Twk" "wkV<25" "wkV>25" "wkM>25" > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/2dxw71257885715.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/freestat/rcomp/tmp/3lxz21257885715.tab") > > system("convert tmp/12r0d1257885715.ps tmp/12r0d1257885715.png") > > > proc.time() user system elapsed 0.561 0.223 0.635