R version 2.8.1 (2008-12-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(100.5 + ,79.8 + ,107.5 + ,109.87 + ,94.2 + ,83.4 + ,108.8 + ,95.74 + ,115.9 + ,113.6 + ,128.4 + ,123.06 + ,111.9 + ,112.9 + ,121.1 + ,123.39 + ,106.5 + ,104 + ,119.5 + ,120.28 + ,96.3 + ,109.9 + ,128.7 + ,115.33 + ,96.6 + ,99 + ,108.7 + ,110.4 + ,96.1 + ,106.3 + ,105.5 + ,114.49 + ,102.9 + ,128.9 + ,119.8 + ,132.03 + ,101.9 + ,111.1 + ,111.3 + ,123.16 + ,98.2 + ,102.9 + ,110.6 + ,118.82 + ,110.9 + ,130 + ,120.1 + ,128.32 + ,87.2 + ,87 + ,97.5 + ,112.24 + ,91.7 + ,87.5 + ,107.7 + ,104.53 + ,108.5 + ,117.6 + ,127.3 + ,132.57 + ,102.8 + ,103.4 + ,117.2 + ,122.52 + ,105.4 + ,110.8 + ,119.8 + ,131.8 + ,129.8 + ,112.6 + ,116.2 + ,124.55 + ,110.9 + ,102.5 + ,111 + ,120.96 + ,106 + ,112.4 + ,112.4 + ,122.6 + ,109.1 + ,135.6 + ,130.6 + ,145.52 + ,104.2 + ,105.1 + ,109.1 + ,118.57 + ,105 + ,127.7 + ,118.8 + ,134.25 + ,106.2 + ,137 + ,123.9 + ,136.7 + ,105.2 + ,91 + ,101.6 + ,121.37 + ,105.6 + ,90.5 + ,112.8 + ,111.63 + ,108.5 + ,122.4 + ,128 + ,134.42 + ,112.5 + ,123.3 + ,129.6 + ,137.65 + ,107 + ,124.3 + ,125.8 + ,137.86 + ,108.9 + ,120 + ,119.5 + ,119.77 + ,109.9 + ,118.1 + ,115.7 + ,130.69 + ,106.2 + ,119 + ,113.6 + ,128.28 + ,112 + ,142.7 + ,129.7 + ,147.45 + ,104.1 + ,123.6 + ,112 + ,128.42 + ,105 + ,129.6 + ,116.8 + ,136.9 + ,108.3 + ,151.6 + ,127 + ,143.95 + ,102.4 + ,110.4 + ,112.1 + ,135.64 + ,106.7 + ,99.2 + ,114.2 + ,122.48 + ,107.1 + ,130.5 + ,121.1 + ,136.83 + ,115.7 + ,136.2 + ,131.6 + ,153.04 + ,109.7 + ,129.7 + ,125 + ,142.71 + ,108.1 + ,128 + ,120.4 + ,123.46 + ,114 + ,121.6 + ,117.7 + ,144.37 + ,111.7 + ,135.8 + ,117.5 + ,146.15 + ,109.5 + ,143.8 + ,120.6 + ,147.61 + ,103.3 + ,147.5 + ,127.5 + ,158.51 + ,102.1 + ,136.2 + ,112.3 + ,147.4 + ,104.4 + ,156.6 + ,124.5 + ,165.05 + ,101.5 + ,123.3 + ,115.2 + ,154.64 + ,103.9 + ,104.5 + ,104.7 + ,126.2 + ,106 + ,139.8 + ,130.9 + ,157.36 + ,109.8 + ,136.5 + ,129.2 + ,154.15 + ,106.9 + ,112.1 + ,113.5 + ,123.21 + ,106.7 + ,118.5 + ,125.6 + ,113.07 + ,107 + ,94.4 + ,107.6 + ,110.45 + ,100.7 + ,102.3 + ,107 + ,113.57 + ,102.7 + ,111.4 + ,121.6 + ,122.44 + ,96.7 + ,99.2 + ,110.7 + ,114.93 + ,98.4 + ,87.8 + ,106.3 + ,111.85 + ,102 + ,115.8 + ,118.6 + ,126.04) + ,dim=c(4 + ,60) + ,dimnames=list(c('inter' + ,'inves' + ,'cons' + ,'uitv') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('inter','inves','cons','uitv'),1:60)) > 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/1ofqd1257332356.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,] 94.20 79.80 97.50 95.740 [2,] 102.25 103.70 111.15 119.295 [3,] 106.00 116.70 117.60 126.120 [4,] 109.00 129.65 124.75 137.755 [5,] 115.90 156.60 131.60 165.050 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 104.6232 111.4068 114.8259 122.3546 [2,] 107.3768 121.9932 120.3741 129.8854 $out [1] 87.2 91.7 129.8 $group [1] 1 1 1 $names [1] "inter" "inves" "cons" "uitv" > 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/2jvxy1257332356.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/3hzux1257332356.tab") > > system("convert tmp/1ofqd1257332356.ps tmp/1ofqd1257332356.png") > > > proc.time() user system elapsed 0.400 0.220 0.672