R version 2.8.0 (2008-10-20) 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(105.7,80.9,105.7,113.8,111.1,71.2,82.4,55.8,60,61,107.3,60.8,99.3,74.3,113.5,66.5,108.9,71,100.2,61.6,103.9,66.4,138.7,74.7,120.2,72.4,100.2,76.4,143.2,86.4,70.9,73.9,85.2,133.1,133,83.3,136.6,85.8,117.9,76.8,106.3,92.7,122.3,68.8,125.5,69.4,148.4,97,126.3,84.6,99.6,84.2,140.4,201.8,80.3,83.1,92.6,69.4,138.5,78.8,110.9,77.1,119.6,90.7,105,107.5,109,81.4,129.4,83.3,148.6,105.7,101.4,85.8,134.8,87.2,143.7,87.5,81.6,77.5,90.3,78.5,141.5,89.7,140.7,94.3,140.2,104.4,100.2,115.9,125.7,90,119.6,91.1,134.7,119.8,109,101.9,116.3,99.2,146.9,115.7,97.4,94.9,89.4,99.8,132.1,109.6,139.8,109,129,119.6,112.5,119.2,121.9,94.6,121.7,102.5,123.1,105.4),dim=c(2,60),dimnames=list(c('Auto','overige'),1:60)) > y <- array(NA,dim=c(2,60),dimnames=list(c('Auto','overige'),1:60)) > 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/freestat/rcomp/tmp/10s2o1257954513.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] [1,] 60.00 55.80 [2,] 100.80 75.55 [3,] 117.10 86.10 [4,] 133.85 102.20 [5,] 148.60 133.10 $n [1] 60 60 $conf [,1] [,2] [1,] 110.3586 80.66401 [2,] 123.8414 91.53599 $out [1] 201.8 $group [1] 2 $names [1] "Auto" "overige" > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/2likm1257954513.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/freestat/rcomp/tmp/316gl1257954513.tab") > > system("convert tmp/10s2o1257954513.ps tmp/10s2o1257954513.png") > > > proc.time() user system elapsed 0.531 0.229 0.612