R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(68,63,4,51,61,4,56,60,6,44,68,8,67,77,4,54,69,8,61,65,5,52,64,4,46,63,4,52,63,4,76,79,4,30,74,4,50,73,8,55,76,7,18,55,4,42,76,5,66,61,4,66,61,4,33,55,4,57,68,4,58,65,4,59,54,15,37,76,4,62,71,4,52,74,7,53,70,4,58,70,6,36,62,16,56,64,6,51,58,9,44,59,4,58,79,5,37,49,4,48,64,5,53,65,4,51,63,4,51,62,4,47,65,6,64,64,4,54,55,18,59,73,4,36,67,5,62,75,4,67,67,10,70,77,5,46,58,8,46,55,8,41,56,5,52,69,4,60,75,5,40,61,14,41,59,8,54,68,8,42,43,4,51,70,6,60,67,4,49,73,7,52,72,7,50,59,6,47,70,4,59,66,8,64,73,4,52,61,10,60,63,6,51,66,4,63,68,4,49,81,4,52,72,5,48,53,4,50,61,6,67,77,4,44,75,7,51,70,8,37,63,8,51,57,10,60,70,8,38,67,5,52,44,12,65,81,4,70,71,4,44,67,6,50,61,7,50,56,8,57,74,11,63,68,8,36,60,6,54,72,7,36,74,5,70,73,8,47,58,4,52,67,5,52,76,6,69,67,4,52,68,6,48,71,16,51,70,6,53,61,6,55,54,4),dim=c(3,98),dimnames=list(c('Intr1','Extr1','Dem1'),1:98)) > y <- array(NA,dim=c(3,98),dimnames=list(c('Intr1','Extr1','Dem1'),1:98)) > 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/146kd1287508248.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] [,3] [1,] 30 49 4 [2,] 47 61 4 [3,] 52 67 5 [4,] 59 72 8 [5,] 76 81 14 $n [1] 98 98 98 $conf [,1] [,2] [,3] [1,] 50.08475 65.24435 4.361584 [2,] 53.91525 68.75565 5.638416 $out [1] 18 43 44 15 16 18 16 $group [1] 1 2 2 3 3 3 3 $names [1] "Intr1" "Extr1" "Dem1" > 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/2bq2i1287508249.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/33h221287508249.tab") > try(system("convert tmp/146kd1287508248.ps tmp/146kd1287508248.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.50 0.23 0.69