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(9.3 + ,6.7 + ,12.3 + ,2 + ,8.7 + ,6.3 + ,14.6 + ,2 + ,8.2 + ,5.9 + ,17.7 + ,2 + ,8.3 + ,6 + ,15.2 + ,2 + ,8.5 + ,6.3 + ,22.3 + ,2 + ,8.6 + ,6.8 + ,14.8 + ,2 + ,8.5 + ,6.4 + ,10 + ,2 + ,8.2 + ,6.3 + ,2.9 + ,2 + ,8.1 + ,6.7 + ,5.6 + ,2 + ,7.9 + ,6.7 + ,16.1 + ,2 + ,8.6 + ,6.9 + ,23.7 + ,2 + ,8.7 + ,7 + ,26.5 + ,2 + ,8.7 + ,6.2 + ,20.9 + ,2 + ,8.5 + ,6.3 + ,15.9 + ,2 + ,8.4 + ,6.8 + ,13 + ,2 + ,8.5 + ,6.8 + ,7.8 + ,2.21 + ,8.7 + ,6.8 + ,17.5 + ,2.25 + ,8.7 + ,6.2 + ,24.4 + ,2.25 + ,8.6 + ,6.6 + ,33.7 + ,2.45 + ,8.5 + ,6.8 + ,32.3 + ,2.5 + ,8.3 + ,6.5 + ,33.4 + ,2.5 + ,8 + ,6.4 + ,22.2 + ,2.64 + ,8.2 + ,6.3 + ,21.7 + ,2.75 + ,8.1 + ,5.9 + ,12.8 + ,2.93 + ,8.1 + ,5.7 + ,15.2 + ,3 + ,8 + ,6 + ,17.1 + ,3.17 + ,7.9 + ,6.1 + ,17.6 + ,3.25 + ,7.9 + ,5.7 + ,17.5 + ,3.39 + ,8 + ,5.8 + ,14.7 + ,3.5 + ,8 + ,5.8 + ,12.9 + ,3.5 + ,7.9 + ,5.8 + ,12 + ,3.65 + ,8 + ,5.3 + ,11.1 + ,3.75 + ,7.7 + ,5.3 + ,12.3 + ,3.75 + ,7.2 + ,5.3 + ,18.9 + ,3.9 + ,7.5 + ,5.2 + ,24 + ,4 + ,7.3 + ,5.4 + ,29.6 + ,4 + ,7 + ,6.2 + ,30.9 + ,4 + ,7 + ,6.9 + ,33 + ,4 + ,7 + ,7.1 + ,34.9 + ,4 + ,7.2 + ,7.5 + ,40.1 + ,4 + ,7.3 + ,7.6 + ,30.8 + ,4 + ,7.1 + ,8.4 + ,31 + ,4 + ,6.8 + ,8.1 + ,23.8 + ,4 + ,6.4 + ,9.1 + ,30.8 + ,4 + ,6.1 + ,9.8 + ,27.6 + ,4 + ,6.5 + ,9.9 + ,30.2 + ,4 + ,7.7 + ,9.4 + ,22.2 + ,4.18 + ,7.9 + ,9.5 + ,19.9 + ,4.25 + ,7.5 + ,8.8 + ,18.3 + ,4.25 + ,6.9 + ,7.2 + ,15.2 + ,3.97 + ,6.6 + ,6.7 + ,10.1 + ,3.42 + ,6.9 + ,6.1 + ,6.5 + ,2.75 + ,7.7 + ,5.9 + ,1.9 + ,2.31 + ,8 + ,4.6 + ,2 + ,2 + ,8 + ,4.7 + ,4.3 + ,1.66 + ,7.7 + ,3.8 + ,4.8 + ,1.31 + ,7.3 + ,3 + ,4.9 + ,1.09 + ,7.4 + ,2.3 + ,2.1 + ,1 + ,8.1 + ,3.3 + ,5.5 + ,1 + ,8.3 + ,3 + ,10.6 + ,1) + ,dim=c(4 + ,60) + ,dimnames=list(c('Werkloosheid' + ,'Inflatie' + ,'Eco_Activiteit' + ,'Rente') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('Werkloosheid','Inflatie','Eco_Activiteit','Rente'),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/html/rcomp/tmp/1ey601258051026.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,] 6.10 4.60 1.90 1.000 [2,] 7.30 5.80 11.55 2.000 [3,] 8.00 6.30 17.30 2.695 [4,] 8.35 6.85 24.20 3.985 [5,] 9.30 8.40 40.10 4.250 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 7.785824 6.085824 14.71969 2.290105 [2,] 8.214176 6.514176 19.88031 3.099895 $out [1] 9.1 9.8 9.9 9.4 9.5 8.8 3.8 3.0 2.3 3.3 3.0 $group [1] 2 2 2 2 2 2 2 2 2 2 2 $names [1] "Werkloosheid" "Inflatie" "Eco_Activiteit" "Rente" > 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/23j5q1258051026.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/3fvsb1258051026.tab") > > system("convert tmp/1ey601258051026.ps tmp/1ey601258051026.png") > > > proc.time() user system elapsed 0.407 0.162 0.549