R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(102.1 + ,100.35 + ,115.43 + ,105.16 + ,102.86 + ,100.35 + ,115.55 + ,105.16 + ,102.99 + ,100.36 + ,117.14 + ,105.16 + ,103.73 + ,100.39 + ,119.09 + ,105.16 + ,105.02 + ,100.34 + ,119.55 + ,105.16 + ,104.43 + ,100.34 + ,119.8 + ,105.17 + ,104.63 + ,100.35 + ,121.32 + ,105.17 + ,104.93 + ,100.43 + ,121.48 + ,105.54 + ,105.87 + ,100.47 + ,119.63 + ,106.9 + ,105.66 + ,100.67 + ,118.61 + ,107.27 + ,106.76 + ,100.75 + ,118.82 + ,107.31 + ,106 + ,100.78 + ,119.93 + ,107.39 + ,107.22 + ,100.79 + ,118.7 + ,107.41 + ,107.33 + ,100.67 + ,119.99 + ,107.46 + ,107.11 + ,100.64 + ,116.67 + ,113.14 + ,108.86 + ,100.64 + ,116.84 + ,117 + ,107.72 + ,100.76 + ,115.17 + ,119.28 + ,107.88 + ,100.79 + ,114.21 + ,119.39 + ,108.38 + ,100.79 + ,114.77 + ,119.5 + ,107.72 + ,100.9 + ,115.59 + ,119.67 + ,108.41 + ,100.98 + ,116.64 + ,119.67 + ,109.9 + ,101.11 + ,118.79 + ,119.73 + ,111.45 + ,101.18 + ,125.63 + ,119.77 + ,112.18 + ,101.22 + ,127.42 + ,119.77 + ,113.34 + ,101.23 + ,131.17 + ,119.78 + ,113.46 + ,101.09 + ,137.68 + ,119.78 + ,114.06 + ,101.26 + ,144.41 + ,119.78 + ,115.54 + ,101.28 + ,146.09 + ,121.28 + ,116.39 + ,101.43 + ,151.26 + ,122.44 + ,115.94 + ,101.53 + ,156.56 + ,122.72 + ,116.97 + ,101.54 + ,158.38 + ,122.75 + ,115.94 + ,101.54 + ,154.21 + ,122.8 + ,115.91 + ,101.79 + ,158.06 + ,122.81 + ,116.43 + ,102.18 + ,154.83 + ,122.83 + ,116.26 + ,102.37 + ,150.89 + ,122.83 + ,116.35 + ,102.46 + ,149.22 + ,122.83 + ,117.9 + ,102.46 + ,148.34 + ,122.84 + ,117.7 + ,102.03 + ,143.88 + ,122.85 + ,117.53 + ,102.26 + ,134.48 + ,123.61 + ,117.86 + ,102.33 + ,133.73 + ,124.74 + ,117.65 + ,102.44 + ,130.08 + ,125.1 + ,116.51 + ,102.5 + ,123.11 + ,125.29 + ,115.93 + ,102.52 + ,122.08 + ,125.45 + ,115.31 + ,102.66 + ,126.83 + ,125.51 + ,115 + ,102.72 + ,123.17 + ,125.55) + ,dim=c(4 + ,45) + ,dimnames=list(c('vmtot' + ,'ktot' + ,'btot' + ,'ttot') + ,1:45)) > y <- array(NA,dim=c(4,45),dimnames=list(c('vmtot','ktot','btot','ttot'),1:45)) > 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/1iygz1257418679.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] [,4] [1,] 102.10 100.34 114.21 105.16 [2,] 106.76 100.67 118.70 107.39 [3,] 111.45 101.11 122.08 119.77 [4,] 115.94 102.03 143.88 122.83 [5,] 117.90 102.72 158.38 125.55 $n [1] 45 45 45 45 $conf [,1] [,2] [,3] [,4] [1,] 109.2878 100.7897 116.1493 116.1334 [2,] 113.6122 101.4303 128.0107 123.4066 $out numeric(0) $group numeric(0) $names [1] "vmtot" "ktot" "btot" "ttot" Warning message: In bxp(list(stats = c(102.1, 106.76, 111.45, 115.94, 117.9, 100.34, : some notches went outside hinges ('box'): maybe set notch=FALSE > 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/2iwzh1257418679.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/3j1h41257418679.tab") > > system("convert tmp/1iygz1257418679.ps tmp/1iygz1257418679.png") > > > proc.time() user system elapsed 0.392 0.165 0.475