R version 2.12.1 (2010-12-16) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(145,50,66,151,53,67,155,55,68,162,57,70,169,60,73,171,59,74,173,60,75,174,60,74,179,62,77,185,64,79,187,65,80,189,66,80,191,67,81,189,66,80,190,66,81,192,67,82,189,67,80,188,68,79,189,69,80,189,71,79,187,70,77,182,68,76,179,67,75,180,66,76,179,66,77,179,66,76,179,66,76,177,67,75,178,67,74,182,68,74,182,68,74,183,68,74,182,67,73,182,68,73,181,67,73,180,68,72,180,68,72,185,71,73,187,73,73,189,75,73,185,75,71,186,76,72,190,77,73,190,77,73,197,81,76,201,85,76,202,86,75,209,89,76),dim=c(3,48),dimnames=list(c('Vlaanderen','Antwerpen','Brussel'),1:48)) > y <- array(NA,dim=c(3,48),dimnames=list(c('Vlaanderen','Antwerpen','Brussel'),1:48)) > 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/rcomp/tmp/1vti11321378693.ps",horizontal=F,onefile=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] [1,] 169.0 60.0 67 [2,] 179.0 66.0 73 [3,] 182.5 67.0 75 [4,] 189.0 70.5 77 [5,] 202.0 77.0 82 $n [1] 48 48 48 $conf [,1] [,2] [,3] [1,] 180.2195 65.97376 74.08779 [2,] 184.7805 68.02624 75.91221 $out [1] 145 151 155 162 209 50 53 55 57 59 81 85 86 89 66 $group [1] 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 $names [1] "Vlaanderen" "Antwerpen" "Brussel" Warning message: In bxp(list(stats = c(169, 179, 182.5, 189, 202, 60, 66, 67, 70.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/28jgi1321378693.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/rcomp/tmp/374031321378693.tab") > > try(system("convert tmp/1vti11321378693.ps tmp/1vti11321378693.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.616 0.092 0.680