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(17,20,17,22,23,21,8,25,27,21,23,28,24,4,27,24,19,24,18,19,4,25,19,13,22,21,21,4,19,16,12,23,21,21,4,26,26,22,25,23,24,7,20,22,5,21,15,18,4,20,21,14,22,23,19,4,18,14,12,20,21,18,8,18,12,12,21,10,23,5,19,22,6,19,21,20,5,23,20,17,26,18,25,5,17,18,15,20,19,21,4,23,23,17,22,22,22,4,23,23,22,23,24,22,7,11,12,9,22,15,20,10,18,16,13,24,18,23,4,24,23,20,23,26,25,5,16,18,12,23,21,25,7,24,23,20,27,23,26,4,24,15,18,21,16,20,4,21,17,13,23,22,26,8,25,22,15,25,16,21,6,22,20,18,23,19,22,4,21,20,18,22,20,16,9,24,20,12,28,25,25,4,24,22,16,28,21,23,4,21,18,16,20,21,21,5,18,17,13,18,16,16,4),dim=c(7,29),dimnames=list(c('I1','I2','I3','E1','E2','E3','A'),1:29)) > y <- array(NA,dim=c(7,29),dimnames=list(c('I1','I2','I3','E1','E2','E3','A'),1:29)) > 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/1fwly1287505417.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] [1,] 11 12 5 18 15 16 4 [2,] 18 17 12 21 18 20 4 [3,] 21 20 15 23 21 21 4 [4,] 24 22 18 24 23 24 7 [5,] 27 27 22 28 28 26 10 $n [1] 29 29 29 29 29 29 29 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 19.23961 18.53301 13.23961 22.11980 19.53301 19.82641 3.119804 [2,] 22.76039 21.46699 16.76039 23.88020 22.46699 22.17359 4.880196 $out [1] 10 $group [1] 5 $names [1] "I1" "I2" "I3" "E1" "E2" "E3" "A" Warning message: In bxp(list(stats = c(11, 18, 21, 24, 27, 12, 17, 20, 22, 27, 5, : 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/2to4g1287505418.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/3epk41287505418.tab") > try(system("convert tmp/1fwly1287505417.ps tmp/1fwly1287505417.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.379 0.157 0.481