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(7.8,8.4,18,7.8,7.5,8.7,18.2,7.6,6.6,9.2,18.8,7.6,6.3,9.4,19.1,7.6,6.3,9.2,18.6,7.6,6,7.8,14.9,7.4,6.3,7.7,15.5,7.3,6.4,7.9,16.5,7.3,6.3,8.6,17.1,7.4,6.3,9,17.8,7.4,6.4,9.1,18.6,7.4,6.7,8.8,19.4,7.4,6.7,8.4,19.5,7.3,6.8,8.4,20.1,7.1,6.2,7.7,18.7,6.6,5.8,7.3,17.9,6.2,5.6,7,16.7,6.2,5.4,6.7,14.7,6.5,5.7,7,15.6,6.6,5.8,7.1,15.8,6.5,5.5,6.9,14.4,6.2,5.4,7.1,13.9,6.1,5.4,7.5,14,6.2,5.4,8.1,14.5,6.4,5.5,8.5,15.7,6.7,5.6,8.9,17.9,6.8,5.7,9,20.4,6.8,5.8,9.2,21.6,7,5.4,8.7,18.9,6.8,4.9,8,14.5,6.9,5.2,8.1,14.3,6.9,5.5,8.3,14.8,7,5.9,8.1,15.1,6.9,6.3,8.4,15.7,7,6.5,8.9,15.9,7.2,6.4,9.4,16.1,7.5,6.4,9.7,17,7.7,6.6,10.1,19,7.9,6.8,10.4,21.5,8.1,7.2,10.7,22.9,8.4),dim=c(4,40),dimnames=list(c('wlhm','wlhv','wlhj','ntwerkz'),1:40)) > y <- array(NA,dim=c(4,40),dimnames=list(c('wlhm','wlhv','wlhj','ntwerkz'),1:40)) > 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/rcomp/tmp/1jxkp1258133000.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,] 4.90 6.70 13.90 6.10 [2,] 5.55 7.75 15.30 6.65 [3,] 6.25 8.40 17.05 7.05 [4,] 6.45 9.05 18.85 7.45 [5,] 7.80 10.70 22.90 8.40 $n [1] 40 40 40 40 $conf [,1] [,2] [,3] [,4] [1,] 6.025162 8.075234 16.16314 6.850144 [2,] 6.474838 8.724766 17.93686 7.249856 $out numeric(0) $group numeric(0) $names [1] "wlhm" "wlhv" "wlhj" "ntwerkz" Warning message: In bxp(list(stats = c(4.9, 5.55, 6.25, 6.45, 7.8, 6.7, 7.75, 8.4, : 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/2iunf1258133000.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/3e2ts1258133000.tab") > > system("convert tmp/1jxkp1258133000.ps tmp/1jxkp1258133000.png") > > > proc.time() user system elapsed 0.379 0.160 0.455