R version 2.12.0 (2010-10-15) 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(83.9,61.2,85.6,62,87.5,65.1,88.5,63.2,91,66.3,90.6,61.9,91.2,62.1,93.2,66.3,90.1,72,95,65.3,95.4,67.6,93.7,70.5,93.9,74.2,92.5,77.8,89.2,78.5,93.3,77.8,93,81.4,96.1,84.5,96.7,88,97.6,93.9,102.6,98.9,107.6,96.7,103.5,98.9,100.8,102.2,94.5,105.4,100.1,105.1,97.4,116.6,103,112,100.2,108.8,100.2,106.9,99,109.5,102.4,106.7,99,118.9,103.7,117.5,103.4,113.7,95.3,119.6,93.6,120.6,102.4,117.5,110.5,120.3,109.1,119.8,100.9,108,108.1,98.8,105,94.6,111.5,84.6,109.5,84.4,110.5,79.1,114,73.3,108.2,74.3,110.3,67.8,111.8,64.8,107.5,66.5,114.1,57.7,113.8,53.8,114.5,51.8,114.8,50.9,117.8,49,116.7,48.1,122.8,42.6,122.3,40.9,115,43.3,118.5,43.7),dim=c(2,61),dimnames=list(c('deposits','2JAAR'),1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('deposits','2JAAR'),1:61)) > 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/1yz3v1293317473.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] [1,] 83.9 40.9 [2,] 93.9 64.8 [3,] 100.9 78.5 [4,] 110.3 105.4 [5,] 122.8 120.6 $n [1] 61 61 $conf [,1] [,2] [1,] 97.5823 70.28669 [2,] 104.2177 86.71331 $out numeric(0) $group numeric(0) $names [1] "deposits" "2JAAR" > 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/2wwcc1293317473.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/3hfa01293317473.tab") > > try(system("convert tmp/1yz3v1293317473.ps tmp/1yz3v1293317473.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.420 0.130 0.541