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(8.1,5.74,6.45,5.75,4.51,2.58,3.63,5.84,4.21,4.33,1.9,2.84,2.83,3.54,1.87,1.59,2.33,2,1.92,1.8,1.45,1.81,1.78,1.63,1.5,1.37,1.73,1.75,1.6,1.47,1.29,1.59,1.18,1.11,1.37,1.26,1.34,1.12,0.99,1,0.99,1.27,1.09,0.97,0.96,0.98,1.15,1.02,0.92,0.93,0.94,1.01,0.86,0.88,0.68,0.82,1.01,0.85,0.7,0.66,0.74,0.92,0.82,0.65,0.64,0.16,0.89,0.54,0.56,0.4,0,0.17,0.13,0.16,0.23),dim=c(5,15),dimnames=list(c('2007','2006','2005','2004','2003'),1:15)) > y <- array(NA,dim=c(5,15),dimnames=list(c('2007','2006','2005','2004','2003'),1:15)) > 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/1n1es1260445133.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] [1,] 0.00 0.17 0.130 0.160 0.23 [2,] 0.88 1.01 0.855 0.790 0.67 [3,] 1.26 1.34 1.120 0.990 1.00 [4,] 1.52 2.07 1.890 1.775 1.65 [5,] 1.90 3.63 2.830 1.920 1.87 $n [1] 15 15 15 15 15 $conf [,1] [,2] [,3] [,4] [,5] [1,] 0.9989093 0.9075685 0.6977674 0.5881651 0.6002048 [2,] 1.5210907 1.7724315 1.5422326 1.3918349 1.3997952 $out [1] 8.10 2.58 5.74 6.45 5.84 5.75 4.21 3.54 4.51 4.33 $group [1] 1 1 2 3 3 4 4 4 5 5 $names [1] "2007" "2006" "2005" "2004" "2003" Warning message: In bxp(list(stats = c(0, 0.88, 1.26, 1.52, 1.9, 0.17, 1.01, 1.34, : 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/2v0t11260445133.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/3q8to1260445133.tab") > > system("convert tmp/1n1es1260445133.ps tmp/1n1es1260445133.png") > > > proc.time() user system elapsed 0.357 0.182 0.437