R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(0.0218 + ,0.0266 + ,0.0290 + ,0.0324 + ,0.0263 + ,0.0305 + ,0.0267 + ,0.0298 + ,0.0181 + ,0.0201 + ,0.0133 + ,0.0174 + ,0.0088 + ,0.0118 + ,0.0128 + ,0.0140 + ,0.0126 + ,0.0128 + ,0.0126 + ,0.0134 + ,0.0129 + ,0.0111 + ,0.0110 + ,0.0094 + ,0.0137 + ,0.0121 + ,0.0121 + ,0.0092 + ,0.0174 + ,0.0134 + ,0.0176 + ,0.0135 + ,0.0148 + ,0.0147 + ,0.0104 + ,0.0111 + ,0.0162 + ,0.0160 + ,0.0149 + ,0.0147 + ,0.0179 + ,0.0164 + ,0.0180 + ,0.0167 + ,0.0158 + ,0.0156 + ,0.0186 + ,0.0172 + ,0.0174 + ,0.0160 + ,0.0159 + ,0.0156 + ,0.0126 + ,0.0131 + ,0.0113 + ,0.0110 + ,0.0192 + ,0.0158 + ,0.0261 + ,0.0188 + ,0.0226 + ,0.0161 + ,0.0241 + ,0.0173 + ,0.0226 + ,0.0163 + ,0.0203 + ,0.0143 + ,0.0286 + ,0.0209 + ,0.0255 + ,0.0189 + ,0.0227 + ,0.0172 + ,0.0226 + ,0.0178 + ,0.0257 + ,0.0200 + ,0.0307 + ,0.0252 + ,0.0276 + ,0.0209 + ,0.0251 + ,0.0213 + ,0.0287 + ,0.0232 + ,0.0314 + ,0.0242 + ,0.0311 + ,0.0241 + ,0.0316 + ,0.0225 + ,0.0247 + ,0.0172 + ,0.0257 + ,0.0204 + ,0.0289 + ,0.0233 + ,0.0263 + ,0.0201 + ,0.0238 + ,0.0196 + ,0.0169 + ,0.0133 + ,0.0196 + ,0.0173 + ,0.0219 + ,0.0187 + ,0.0187 + ,0.0168 + ,0.0160 + ,0.0158 + ,0.0163 + ,0.0169 + ,0.0122 + ,0.0178 + ,0.0121 + ,0.0191 + ,0.0149 + ,0.0185 + ,0.0164 + ,0.0186 + ,0.0166 + ,0.0204 + ,0.0177 + ,0.0208 + ,0.0182 + ,0.0194 + ,0.0178 + ,0.0191 + ,0.0128 + ,0.0134 + ,0.0129 + ,0.0130 + ,0.0137 + ,0.0138 + ,0.0112 + ,0.0124 + ,0.0151 + ,0.0130 + ,0.0224 + ,0.0179 + ,0.0294 + ,0.0224 + ,0.0309 + ,0.0264 + ,0.0346 + ,0.0279 + ,0.0364 + ,0.0308 + ,0.0439 + ,0.0388 + ,0.0415 + ,0.0370 + ,0.0521 + ,0.0461 + ,0.0580 + ,0.0507 + ,0.0591 + ,0.0522 + ,0.0539 + ,0.0493 + ,0.0546 + ,0.0515 + ,0.0472 + ,0.0480 + ,0.0314 + ,0.0390 + ,0.0263 + ,0.0354 + ,0.0232 + ,0.0334 + ,0.0193 + ,0.0280 + ,0.0062 + ,0.0160 + ,0.0060 + ,0.0153 + ,-0.0037 + ,0.0069 + ,-0.0110 + ,-0.0010 + ,-0.0168 + ,-0.0066 + ,-0.0078 + ,-0.0020 + ,-0.0119 + ,-0.0062 + ,-0.0097 + ,-0.0058 + ,-0.0012 + ,-0.0031 + ,0.0026 + ,-0.0025 + ,0.0062 + ,-0.0009 + ,0.0070 + ,0.0013 + ,0.0166 + ,0.0094 + ,0.0180 + ,0.0105 + ,0.0227 + ,0.0158 + ,0.0246 + ,0.0202 + ,0.0257 + ,0.0216 + ,0.0232 + ,0.0206 + ,0.0291 + ,0.0256 + ,0.0301 + ,0.0254 + ,0.0286 + ,0.0253 + ,0.0310 + ,0.0260 + ,0.0322 + ,0.0272 + ,0.0339 + ,0.0281 + ,0.0352 + ,0.0292 + ,0.0341 + ,0.0287 + ,0.0335 + ,0.0289 + ,0.0367 + ,0.0327 + ,0.0375 + ,0.0333 + ,0.0360 + ,0.0314 + ,0.0355 + ,0.0303 + ,0.0357 + ,0.0309 + ,0.0385 + ,0.0339) + ,dim=c(2 + ,120) + ,dimnames=list(c('Inflatie' + ,'Gezondheidsindex') + ,1:120)) > y <- array(NA,dim=c(2,120),dimnames=list(c('Inflatie','Gezondheidsindex'),1:120)) > 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' > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1tq5a1323889799.ps",horizontal=F,onefile=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,] -0.00780 -0.00310 [2,] 0.01425 0.01390 [3,] 0.02185 0.01865 [4,] 0.02925 0.02620 [5,] 0.04720 0.03900 $n [1] 120 120 $conf [,1] [,2] [1,] 0.0196865 0.01687593 [2,] 0.0240135 0.02042407 $out [1] 0.0521 0.0580 0.0591 0.0539 0.0546 -0.0110 -0.0168 -0.0119 -0.0097 [10] 0.0461 0.0507 0.0522 0.0493 0.0515 0.0480 -0.0066 -0.0062 -0.0058 $group [1] 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 $names [1] "Inflatie" "Gezondheidsindex" > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/2ut5f1323889799.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/wessaorg/rcomp/tmp/30j0q1323889799.tab") > > try(system("convert tmp/1tq5a1323889799.ps tmp/1tq5a1323889799.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.479 0.086 0.558