R version 2.7.2 (2008-08-25) 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(2.042969 + ,1.860338 + ,1.984077 + ,1.773786 + ,2.008174 + ,1.932981 + ,2.026125 + ,1.945469 + ,1.908485 + ,1.79796 + ,1.97635 + ,1.939519 + ,2.004321 + ,1.898725 + ,2.039017 + ,2.049218 + ,2.009876 + ,1.898725 + ,1.957607 + ,2.120903 + ,1.983175 + ,1.603144 + ,1.982723 + ,1.838849 + ,2.025306 + ,1.773786 + ,2.013259 + ,1.868056 + ,2.0086 + ,1.758912 + ,2.019947 + ,1.909021 + ,1.934498 + ,1.668386 + ,1.96426 + ,1.617 + ,2.028978 + ,1.85248 + ,2.051538 + ,1.83187 + ,2.007321 + ,1.857332 + ,1.963788 + ,2.162863 + ,1.988559 + ,1.598791 + ,1.986772 + ,1.715167 + ,2.022841 + ,1.867467 + ,2.01157 + ,1.850646 + ,1.991669 + ,1.783904 + ,2.019116 + ,1.78533 + ,1.941511 + ,1.736397 + ,1.95376 + ,1.592177 + ,2.040602 + ,1.823474 + ,2.048053 + ,1.767156 + ,1.993877 + ,1.776701 + ,1.986324 + ,1.907949 + ,1.978181 + ,1.571709 + ,1.986772 + ,1.649335 + ,2.051924 + ,1.687529 + ,2.012415 + ,1.732394 + ,1.988559 + ,1.694605 + ,2.046885 + ,1.789581 + ,1.941511 + ,1.544068 + ,1.985875 + ,1.552668 + ,2.057286 + ,1.710117 + ,2.042576 + ,1.690196 + ,2.016616 + ,1.618048 + ,2.006894 + ,1.860338 + ,1.975891 + ,1.624282 + ,1.981819 + ,1.644439 + ,2.019947 + ,1.654177 + ,2.011993 + ,1.701568 + ,1.991669 + ,1.611723 + ,2.056524 + ,1.673942 + ,1.907949 + ,1.567026 + ,1.980912 + ,1.611723 + ,2.053846 + ,1.583199 + ,2.024896 + ,1.665581 + ,2.036629 + ,1.453318 + ,2.009876 + ,1.894316 + ,1.995635 + ,1.565848 + ,2.003029 + ,1.705008 + ,2.062582 + ,1.631444) + ,dim=c(2 + ,61) + ,dimnames=list(c('Totale' + ,'Investeringen') + ,1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('Totale','Investeringen'),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: Wessa P., (2007), Notched Boxplots (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_notchedbox1.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/freestat/rcomp/tmp/10otp1225298950.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,] 1.934498 1.453318 [2,] 1.983175 1.631444 [3,] 2.007321 1.736397 [4,] 2.025306 1.857332 [5,] 2.062582 2.162863 $n [1] 61 61 $conf [,1] [,2] [1,] 1.998798 1.690700 [2,] 2.015844 1.782094 $out [1] 1.908485 1.907949 $group [1] 1 1 $names [1] "Totale" "Investeringen" > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/2esm01225298950.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/freestat/rcomp/tmp/3pn3z1225298950.tab") > > system("convert tmp/10otp1225298950.ps tmp/10otp1225298950.png") > > > proc.time() user system elapsed 0.831 0.208 0.889