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(269645 + ,308347 + ,1.8 + ,8.4 + ,267037 + ,298427 + ,1.6 + ,8.4 + ,258113 + ,289231 + ,1.9 + ,8.4 + ,262813 + ,291975 + ,1.7 + ,8.6 + ,267413 + ,294912 + ,1.6 + ,8.9 + ,267366 + ,293488 + ,1.3 + ,8.8 + ,264777 + ,290555 + ,1.1 + ,8.3 + ,258863 + ,284736 + ,1.9 + ,7.5 + ,254844 + ,281818 + ,2.6 + ,7.2 + ,254868 + ,287854 + ,2.3 + ,7.4 + ,277267 + ,316263 + ,2.4 + ,8.8 + ,285351 + ,325412 + ,2.2 + ,9.3 + ,286602 + ,326011 + ,2 + ,9.3 + ,283042 + ,328282 + ,2.9 + ,8.7 + ,276687 + ,317480 + ,2.6 + ,8.2 + ,277915 + ,317539 + ,2.3 + ,8.3 + ,277128 + ,313737 + ,2.3 + ,8.5 + ,277103 + ,312276 + ,2.6 + ,8.6 + ,275037 + ,309391 + ,3.1 + ,8.5 + ,270150 + ,302950 + ,2.8 + ,8.2 + ,267140 + ,300316 + ,2.5 + ,8.1 + ,264993 + ,304035 + ,2.9 + ,7.9 + ,287259 + ,333476 + ,3.1 + ,8.6 + ,291186 + ,337698 + ,3.1 + ,8.7 + ,292300 + ,335932 + ,3.2 + ,8.7 + ,288186 + ,323931 + ,2.5 + ,8.5 + ,281477 + ,313927 + ,2.6 + ,8.4 + ,282656 + ,314485 + ,2.9 + ,8.5 + ,280190 + ,313218 + ,2.6 + ,8.7 + ,280408 + ,309664 + ,2.4 + ,8.7 + ,276836 + ,302963 + ,1.7 + ,8.6 + ,275216 + ,298989 + ,2 + ,8.5 + ,274352 + ,298423 + ,2.2 + ,8.3 + ,271311 + ,301631 + ,1.9 + ,8 + ,289802 + ,329765 + ,1.6 + ,8.2 + ,290726 + ,335083 + ,1.6 + ,8.1 + ,292300 + ,327616 + ,1.2 + ,8.1 + ,278506 + ,309119 + ,1.2 + ,8 + ,269826 + ,295916 + ,1.5 + ,7.9 + ,265861 + ,291413 + ,1.6 + ,7.9 + ,269034 + ,291542 + ,1.7 + ,8 + ,264176 + ,284678 + ,1.8 + ,8 + ,255198 + ,276475 + ,1.8 + ,7.9 + ,253353 + ,272566 + ,1.8 + ,8 + ,246057 + ,264981 + ,1.3 + ,7.7 + ,235372 + ,263290 + ,1.3 + ,7.2 + ,258556 + ,296806 + ,1.4 + ,7.5 + ,260993 + ,303598 + ,1.1 + ,7.3 + ,254663 + ,286994 + ,1.5 + ,7 + ,250643 + ,276427 + ,2.2 + ,7 + ,243422 + ,266424 + ,2.9 + ,7 + ,247105 + ,267153 + ,3.1 + ,7.2 + ,248541 + ,268381 + ,3.5 + ,7.3 + ,245039 + ,262522 + ,3.6 + ,7.1 + ,237080 + ,255542 + ,4.4 + ,6.8 + ,237085 + ,253158 + ,4.2 + ,6.4 + ,225554 + ,243803 + ,5.2 + ,6.1 + ,226839 + ,250741 + ,5.8 + ,6.5 + ,247934 + ,280445 + ,5.9 + ,7.7 + ,248333 + ,285257 + ,5.4 + ,7.9 + ,246969 + ,270976 + ,5.5 + ,7.5 + ,245098 + ,261076 + ,4.7 + ,6.9 + ,246263 + ,255603 + ,3.1 + ,6.6 + ,255765 + ,260376 + ,2.6 + ,6.9 + ,264319 + ,263903 + ,2.3 + ,7.7 + ,268347 + ,264291 + ,1.9 + ,8 + ,273046 + ,263276 + ,0.6 + ,8 + ,273963 + ,262572 + ,0.6 + ,7.7 + ,267430 + ,256167 + ,-0.4 + ,7.3 + ,271993 + ,264221 + ,-1.1 + ,7.4 + ,292710 + ,293860 + ,-1.7 + ,8.1 + ,295881 + ,300713 + ,-0.8 + ,8.3) + ,dim=c(4 + ,72) + ,dimnames=list(c('Male' + ,'Female' + ,'infl' + ,'werkltot') + ,1:72)) > y <- array(NA,dim=c(4,72),dimnames=list(c('Male','Female','infl','werkltot'),1:72)) > 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/1z1ay1257501354.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,] 225554.0 243803 0.6 6.1 [2,] 254753.5 267767 1.6 7.4 [3,] 267421.5 293674 2.2 8.0 [4,] 277591.0 310970 2.9 8.5 [5,] 295881.0 337698 4.7 9.3 $n [1] 72 72 72 72 $conf [,1] [,2] [,3] [,4] [1,] 263169.0 285629.4 1.957934 7.795175 [2,] 271674.0 301718.6 2.442066 8.204825 $out [1] 5.2 5.8 5.9 5.4 5.5 -0.4 -1.1 -1.7 -0.8 $group [1] 3 3 3 3 3 3 3 3 3 $names [1] "Male" "Female" "infl" "werkltot" > 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/2qpaw1257501354.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/31xvf1257501354.tab") > > system("convert tmp/1z1ay1257501354.ps tmp/1z1ay1257501354.png") > > > proc.time() user system elapsed 0.581 0.250 0.684