R version 2.7.0 (2008-04-22) 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(97.3,93.5,101,94.7,113.2,112.9,101,99.2,105.7,105.6,113.9,113,86.4,83.1,96.5,81.1,103.3,96.9,114.9,104.3,105.8,97.7,94.2,102.6,98.4,89.9,99.4,96,108.8,112.7,112.6,107.1,104.4,106.2,112.2,121,81.1,101.2,97.1,83.2,112.6,105.1,113.8,113.3,107.8,99.1,103.2,100.3,103.3,93.5,101.2,98.8,107.7,106.2,110.4,98.3,101.9,102.1,115.9,117.1,89.9,101.5,88.6,80.5,117.2,105.9,123.9,109.5,100,97.2,103.6,114.5,94.1,93.5,98.7,100.9,119.5,121.1,112.7,116.5,104.4,109.3,124.7,118.1,89.1,108.3,97,105.4,121.6,116.2,118.8,111.2,114,105.8,111.5,122.7,97.2,99.5,102.5,107.9,113.4,124.6,109.8,115,104.9,110.3,126.1,132.7,80,99.7,96.8,96.5,117.2,118.7,112.3,112.9,117.3,130.5,111.1,137.9,102.2,115,104.3,116.8,122.9,140.9,107.6,120.7,121.3,134.2,131.5,147.3,89,112.4,104.4,107.1,128.9,128.4,135.9,137.7,133.3,135,121.3,151,120.5,137.4,120.4,132.4,137.9,161.3,126.1,139.8,133.2,146,151.1,166.5,105,143.3,119,121,140.4,152.6,156.6,154.4,137.1,154.6,122.7,158),dim=c(2,84),dimnames=list(c('X','Y'),1:84)) > y <- array(NA,dim=c(2,84),dimnames=list(c('X','Y'),1:84)) > 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/1nwwg1228233700.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,] 80.00 80.5 [2,] 101.10 100.6 [3,] 110.10 111.8 [4,] 119.95 126.5 [5,] 140.40 161.3 $n [1] 84 84 $conf [,1] [,2] [1,] 106.8504 107.3350 [2,] 113.3496 116.2650 $out [1] 151.1 156.6 166.5 $group [1] 1 1 2 $names [1] "X" "Y" > 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/20xqm1228233700.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/3tchs1228233700.tab") > > system("convert tmp/1nwwg1228233700.ps tmp/1nwwg1228233700.png") > > > proc.time() user system elapsed 1.526 0.248 1.980