R version 2.7.2 (2008-08-25) 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(110.40,104.70,109.20,91.00,99.90,96.80,72.50,45.10,96.40,102.80,88.60,80.10,99.80,96.80,59.40,50.30,101.90,98.10,94.30,73.60,99.80,96.80,85.70,40.90,106.20,113.90,98.30,86.40,100.30,96.80,88.20,47.20,81.00,80.90,86.40,74.50,99.90,96.80,62.80,36.90,94.70,95.70,80.60,71.20,99.90,96.80,87.00,40.90,101.00,113.20,104.10,92.40,100.00,96.80,79.20,38.30,109.40,105.90,108.20,81.50,100.10,96.80,112.00,46.30,102.30,108.80,93.40,85.30,100.10,96.80,79.20,28.40,90.70,102.30,71.90,69.90,100.20,96.80,132.10,78.40,96.20,99.00,94.10,84.20,100.30,96.90,40.10,36.80,96.10,100.70,94.90,90.70,100.60,97.10,69.00,50.70),dim=c(8,12),dimnames=list(c('X1','X2','X3','X4','X5','X6','x7','X8'),1:12)) > y <- array(NA,dim=c(8,12),dimnames=list(c('X1','X2','X3','X4','X5','X6','x7','X8'),1:12)) > 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/1u2mj1225982378.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] [,5] [,6] [,7] [,8] [1,] 90.70 95.70 71.9 69.90 99.80 96.8 40.1 28.40 [2,] 95.40 98.55 87.5 74.05 99.90 96.8 65.9 37.60 [3,] 98.70 102.55 94.2 82.85 100.05 96.8 79.2 43.00 [4,] 104.25 107.35 101.2 88.55 100.25 96.8 87.6 48.75 [5,] 110.40 113.90 109.2 92.40 100.60 96.8 112.0 50.70 $n [1] 12 12 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 94.66346 98.53626 87.95134 76.23645 99.89036 96.8 69.30248 37.91441 [2,] 102.73654 106.56374 100.44866 89.46355 100.20964 96.8 89.09752 48.08559 $out [1] 81.0 80.9 96.9 97.1 132.1 78.4 $group [1] 1 2 6 6 7 8 $names [1] "X1" "X2" "X3" "X4" "X5" "X6" "x7" "X8" Warning message: In bxp(list(stats = c(90.7, 95.4, 98.7, 104.25, 110.4, 95.7, 98.55, : 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/2uybo1225982378.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/3trv41225982378.tab") > > system("convert tmp/1u2mj1225982378.ps tmp/1u2mj1225982378.png") > > > proc.time() user system elapsed 0.605 0.175 0.685