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(0.527,4.79,0.472,5.95,0,5.46,0.052,5.75,0.313,5.15,0.364,4.96,0.363,5.28,-0.155,5.73,0.052,5.75,0.568,5.88,0.668,6.3,1.378,6.74,0.252,6.75,-0.402,7.34,-0.05,6.64,0.555,6.62,0.05,6.32,0.15,5.32,0.45,5.68,0.299,6.18,0.199,5.02,0.496,2.1,0.444,4,-0.393,3,-0.444,4.73,0.198,5.14,0.494,5.81,0.133,6.24,0.388,4.49,0.484,4.22,0.278,4.88,0.369,5.18,0.165,5.19,0.155,5.06,0.087,4.65,0.414,4.83,0.36,4.6,0.975,4.72,0.27,4.33,0.359,4.97,0.169,5.37,0.381,4.19,0.154,4.54,0.486,5.82,0.925,5.49,0.728,3.28,-0.014,5.11,0.046,6.24,-0.819,6.41,-1.674,6.43,-0.788,8.42,0.279,8.23,0.396,3.17,-0.141,2.72,-0.019,3,0.099,3.47,0.742,3.88,0.005,3.43,0.448,4.06),dim=c(2,59),dimnames=list(c('Amerikaanse_inflatie','Rentevoet_auto'),1:59)) > y <- array(NA,dim=c(2,59),dimnames=list(c('Amerikaanse_inflatie','Rentevoet_auto'),1:59)) > 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/17k6g1257787619.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,] -0.444 2.720 [2,] 0.051 4.515 [3,] 0.278 5.150 [4,] 0.449 5.915 [5,] 0.975 7.340 $n [1] 59 59 $conf [,1] [,2] [1,] 0.196132 4.862022 [2,] 0.359868 5.437978 $out [1] 1.378 -0.819 -1.674 -0.788 2.100 8.420 8.230 $group [1] 1 1 1 1 2 2 2 $names [1] "Amerikaanse_inflatie" "Rentevoet_auto" > 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/288541257787619.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/34o3f1257787619.tab") > > system("convert tmp/17k6g1257787619.ps tmp/17k6g1257787619.png") > > > proc.time() user system elapsed 0.385 0.161 0.522