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(0.61,0.59,1.03,0.62,0.6,1.02,0.61,0.59,1.02,0.63,0.6,1.02,0.63,0.61,1.02,0.58,0.56,1.03,0.55,0.53,1.03,0.54,0.52,1.03,0.54,0.52,1.04,0.49,0.47,1.04,0.52,0.5,1.04,0.53,0.51,1.04,0.56,0.54,1.04,0.56,0.54,1.04,0.58,0.56,1.04,0.6,0.58,1.04,0.59,0.57,1.04,0.61,0.59,1.05,0.63,0.61,1.05,0.69,0.67,1.04,0.68,0.66,1.04,0.7,0.68,1.04,0.7,0.68,1.05,0.76,0.74,1.05,0.78,0.76,1.05,0.89,0.87,1.06,0.94,0.92,1.06,0.95,0.93,1.07,0.83,0.81,1.06,0.81,0.79,1.07,0.73,0.71,1.07,0.64,0.62,1.07,0.51,0.5,1.07,0.5,0.47,1.07,0.47,0.45,1.07,0.43,0.41,1.07,0.47,0.45,1.07,0.48,0.46,1.08,0.52,0.5,1.07,0.5,0.48,1.07,0.55,0.53,1.08,0.52,0.5,1.08,0.52,0.5,1.08,0.55,0.53,1.08,0.54,0.52,1.08,0.59,0.57,1.08,0.56,0.54,1.08,0.61,0.59,1.09,0.66,0.64,1.09,0.68,0.65,1.08,0.66,0.64,1.08,0.64,0.62,1.08,0.65,0.63,1.08),dim=c(3,53),dimnames=list(c('gasolieLevering<2000L','GasolieLevering>2000L','Houtskool'),1:53)) > y <- array(NA,dim=c(3,53),dimnames=list(c('gasolieLevering<2000L','GasolieLevering>2000L','Houtskool'),1:53)) > 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/16j3h1292700709.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,] 0.43 0.41 1.02 [2,] 0.54 0.52 1.04 [3,] 0.60 0.58 1.06 [4,] 0.66 0.64 1.08 [5,] 0.83 0.81 1.09 $n [1] 53 53 53 $conf [,1] [,2] [,3] [1,] 0.5739564 0.5539564 1.051319 [2,] 0.6260436 0.6060436 1.068681 $out [1] 0.89 0.94 0.95 0.87 0.92 0.93 $group [1] 1 1 1 2 2 2 $names [1] "gasolieLevering<2000L" "GasolieLevering>2000L" "Houtskool" > 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/2a1151292700709.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/3d2ht1292700709.tab") > > try(system("convert tmp/16j3h1292700709.ps tmp/16j3h1292700709.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.367 0.161 0.734