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(130.7,125.9,117.2,133.1,110.8,147,111.4,145.8,108.2,164.4,108.8,149.8,110.2,137.7,109.5,151.7,109.5,156.8,116,180,111.2,180.4,112.1,170.4,114,191.6,119.1,199.5,114.1,218.2,115.1,217.5,115.4,205,110.8,194,116,199.3,119.2,219.3,126.5,211.1,127.8,215.2,131.3,240.2,140.3,242.2,137.3,240.7,143,255.4,134.5,253,139.9,218.2,159.3,203.7,170.4,205.6,175,215.6,175.8,188.5,180.9,202.9,180.3,214,169.6,230.3,172.3,230,184.8,241,177.7,259.6,184.6,247.8,211.4,270.3,215.3,289.7,215.9,322.7,244.7,315,259.3,320.2,289,329.5,310.9,360.6,321,382.2,315.1,435.4,333.2,464,314.1,468.8,284.7,403,273.9,351.6,216,252,196.4,188,190.9,146.5,206.4,152.9,196.3,148.1,199.5,165.1,198.9,177,214.4,206.1),dim=c(2,60),dimnames=list(c('Graan','Aardolie'),1:60)) > y <- array(NA,dim=c(2,60),dimnames=list(c('Graan','Aardolie'),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 = 'red' > 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/161js1257419432.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,] 108.2 125.9 [2,] 116.0 178.5 [3,] 170.0 214.6 [4,] 208.9 254.2 [5,] 333.2 360.6 $n [1] 60 60 $conf [,1] [,2] [1,] 151.0505 199.1589 [2,] 188.9495 230.0411 $out [1] 382.2 435.4 464.0 468.8 403.0 $group [1] 2 2 2 2 2 $names [1] "Graan" "Aardolie" > 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/2bftl1257419432.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/35enc1257419432.tab") > > system("convert tmp/161js1257419432.ps tmp/161js1257419432.png") > > > proc.time() user system elapsed 0.527 0.216 0.579