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(98.1 + ,98.6 + ,101.1 + ,98 + ,111.1 + ,106.8 + ,93.3 + ,96.7 + ,100 + ,100.2 + ,108 + ,107.7 + ,70.4 + ,92 + ,75.4 + ,98.4 + ,105.5 + ,107.4 + ,112.3 + ,117.7 + ,102.5 + ,105.7 + ,93.5 + ,97.5 + ,86.7 + ,99.9 + ,95.2 + ,98.2 + ,103.8 + ,104.5 + ,97 + ,100.8 + ,95.5 + ,101.5 + ,101 + ,103.9 + ,67.5 + ,99.6 + ,64 + ,98.4 + ,106.7 + ,112.7 + ,100.6 + ,118.4 + ,101.2 + ,108.1 + ,93.1 + ,105.4 + ,84.2 + ,114.6 + ,85.8 + ,106.9 + ,91.8 + ,115.9 + ,92.4 + ,109.8 + ,80.3 + ,101.8 + ,79.7 + ,114.2 + ,62.5 + ,110.8 + ,57.1 + ,108.4 + ,100.8 + ,127.5 + ,100.7 + ,128.6 + ,86.2 + ,116.6 + ,83.2 + ,127.4 + ,71.7 + ,105 + ,77.5 + ,108.3 + ,89.8 + ,125 + ,80.3 + ,111.6 + ,78.7 + ,106.5 + ,93.8 + ,130.3 + ,57.6 + ,115 + ,60.6 + ,116.1 + ,91 + ,134 + ,85.3 + ,126.5 + ,77.4 + ,125.8 + ,77.3 + ,136.4 + ,68.3 + ,114.9 + ,69.9 + ,110.9 + ,81.7 + ,125.5 + ,75.1 + ,116.8 + ,69.9 + ,116.8 + ,84 + ,125.5 + ,54.3 + ,104.2 + ,60 + ,115.1 + ,89.9 + ,132.8 + ,77 + ,123.3 + ,85.3 + ,124.8 + ,77.6 + ,122 + ,69.2 + ,117.4 + ,75.5 + ,117.9 + ,85.7 + ,137.4 + ,72.2 + ,114.6 + ,79.9 + ,124.7 + ,85.3 + ,129.6 + ,52.2 + ,109.4 + ,61.2 + ,120.9 + ,82.4 + ,134.9 + ,85.4 + ,136.3 + ,78.2 + ,133.2 + ,70.2 + ,127.2 + ,70.2 + ,122.7 + ,69.3 + ,120.5 + ,77.5 + ,137.8 + ,66.1 + ,119.1 + ,69 + ,124.3 + ,79.2 + ,134.4 + ,56.2 + ,121.1 + ,63.3 + ,122.2 + ,77.8 + ,127.7 + ,92 + ,137.4 + ,78.1 + ,132.2 + ,65.1 + ,129.2 + ,71.1 + ,124.9 + ,70.9 + ,124.8 + ,72 + ,128.2 + ,81.9 + ,134.4 + ,70.6 + ,118.6 + ,72.5 + ,132.6 + ,65.1 + ,123.2 + ,54.9 + ,112.8 + ,80 + ,138.3) + ,dim=c(2 + ,93) + ,dimnames=list(c('DC' + ,'NDC') + ,1:93)) > y <- array(NA,dim=c(2,93),dimnames=list(c('DC','NDC'),1:93)) > 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/10yxi1229684197.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,] 52.2 92.0 [2,] 70.2 107.4 [3,] 79.7 117.4 [4,] 92.0 126.5 [5,] 112.3 138.3 $n [1] 93 93 $conf [,1] [,2] [1,] 76.12832 114.2707 [2,] 83.27168 120.5293 $out numeric(0) $group numeric(0) $names [1] "DC" "NDC" > 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/2oeuc1229684197.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/371iw1229684197.tab") > > system("convert tmp/10yxi1229684197.ps tmp/10yxi1229684197.png") > > > proc.time() user system elapsed 0.378 0.174 0.444