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(232 + ,153 + ,252 + ,100 + ,309 + ,142 + ,331 + ,100 + ,308 + ,138 + ,330 + ,100 + ,309 + ,142 + ,332 + ,100 + ,298 + ,129 + ,322 + ,101.1 + ,293 + ,138 + ,315 + ,101.35 + ,290 + ,142 + ,313 + ,101.45 + ,292 + ,122 + ,314 + ,101.49 + ,283 + ,128 + ,304 + ,101.68 + ,269 + ,135 + ,289 + ,101.92 + ,265 + ,139 + ,284 + ,102.04 + ,253 + ,166 + ,271 + ,102.55 + ,236 + ,116 + ,254 + ,104.02 + ,232 + ,153 + ,246 + ,105.41 + ,224 + ,139 + ,237 + ,105.48 + ,222 + ,150 + ,235 + ,105.54 + ,215 + ,161 + ,230 + ,105.16 + ,213 + ,112 + ,228 + ,105.16 + ,211 + ,113 + ,227 + ,105.16 + ,212 + ,133 + ,231 + ,105.16 + ,215 + ,130 + ,231 + ,105.16 + ,214 + ,131 + ,228 + ,105.17 + ,215 + ,142 + ,230 + ,105.17 + ,213 + ,161 + ,228 + ,105.54 + ,212 + ,148 + ,227 + ,106.9 + ,210 + ,167 + ,225 + ,107.27 + ,197 + ,142 + ,210 + ,107.31 + ,190 + ,132 + ,203 + ,107.39 + ,183 + ,203 + ,196 + ,107.41 + ,176 + ,158 + ,189 + ,107.46 + ,169 + ,85 + ,182 + ,113.14 + ,163 + ,149 + ,177 + ,117 + ,160 + ,155 + ,172 + ,119.28 + ,150 + ,162 + ,162 + ,119.39 + ,147 + ,160 + ,159 + ,119.5 + ,150 + ,187 + ,161 + ,119.67 + ,139 + ,185 + ,150 + ,119.67 + ,137 + ,159 + ,148 + ,119.73 + ,136 + ,126 + ,147 + ,119.77 + ,130 + ,116 + ,144 + ,119.77 + ,129 + ,214 + ,143 + ,119.78 + ,134 + ,135 + ,148 + ,119.78 + ,137 + ,170 + ,152 + ,119.78 + ,131 + ,144 + ,145 + ,121.28 + ,133 + ,119 + ,149 + ,122.44 + ,133 + ,134 + ,148 + ,122.72 + ,129 + ,154 + ,144 + ,122.75 + ,129 + ,125 + ,143 + ,122.8 + ,123 + ,177 + ,138 + ,122.81 + ,122 + ,133 + ,136 + ,122.83 + ,123 + ,151 + ,137 + ,122.83 + ,116 + ,176 + ,133 + ,122.83 + ,121 + ,154 + ,136 + ,122.84 + ,121 + ,167 + ,137 + ,122.85 + ,123 + ,204 + ,140 + ,123.61 + ,125 + ,102 + ,141 + ,124.74 + ,122 + ,121 + ,138 + ,125.1 + ,122 + ,167 + ,137 + ,125.29 + ,123 + ,121 + ,136 + ,125.45 + ,121 + ,249 + ,134 + ,125.51 + ,123 + ,185 + ,136 + ,125.55) + ,dim=c(4 + ,61) + ,dimnames=list(c('vrouw' + ,'douane' + ,'VlGw' + ,'CPI') + ,1:61)) > y <- array(NA,dim=c(4,61),dimnames=list(c('vrouw','douane','VlGw','CPI'),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/html/rcomp/tmp/1ac1i1258137819.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,] 116 102 133 100.00 [2,] 129 131 144 105.16 [3,] 169 142 182 113.14 [4,] 222 161 235 122.72 [5,] 309 204 332 125.55 $n [1] 61 61 61 61 $conf [,1] [,2] [,3] [,4] [1,] 150.1863 135.9311 163.5909 109.5876 [2,] 187.8137 148.0689 200.4091 116.6924 $out [1] 85 214 249 $group [1] 2 2 2 $names [1] "vrouw" "douane" "VlGw" "CPI" > 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/2i71h1258137819.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/32xmz1258137819.tab") > > system("convert tmp/1ac1i1258137819.ps tmp/1ac1i1258137819.png") > > > proc.time() user system elapsed 0.405 0.164 0.474