R version 2.7.0 (2008-04-22) 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(10666.71,9978.53,8526.63,10124.63,10673.38,10827.81,12377.62,13406.97,10682.74,9923.81,8474.21,10540.05,10539.51,10872.48,12512.89,12538.12,10777.22,9892.56,7916.13,10601.61,10723.78,10971.19,12631.48,12419.57,10052.6,10500.98,7977.64,10323.73,10682.06,11145.65,12268.53,12193.88,10213.97,10179.35,8334.59,10418.4,10283.19,11234.68,12754.8,12656.63,10546.82,10080.48,8623.36,10092.96,10377.18,11333.88,13407.75,12812.48,10767.2,9492.44,9098.03,10364.91,10486.64,10997.97,13480.21,12056.67,10444.5,8616.49,9154.34,10152.09,10545.38,11036.89,13673.28,11322.38,10314.68,8685.4,9284.73,10032.8,10554.27,11257.35,13239.71,11530.75,9042.56,8160.67,9492.49,10204.59,10532.54,11533.59,13557.69,11114.08,9220.75,8048.1,9682.35,10001.6,10324.31,11963.12,13901.28,9181.73,9721.84,8641.21,9762.12,10411.75,10695.25,12185.15,13200.58,8614.55),dim=c(8,12),dimnames=list(c('Jaar1','jaar2','jaar3','jaar4','jaar5','Jaar6','Jaar7','jaar8'),1:12)) > y <- array(NA,dim=c(8,12),dimnames=list(c('Jaar1','jaar2','jaar3','jaar4','jaar5','Jaar6','Jaar7','jaar8'),1:12)) > 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/1ie2e1229173821.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] [,5] [,6] [,7] [,8] [1,] 9042.56 8048.10 7916.130 10001.60 10283.19 10827.81 12268.53 9181.73 [2,] 9887.22 8628.85 8404.400 10108.79 10431.91 10984.58 12572.18 11218.23 [3,] 10379.59 9692.50 8860.695 10264.16 10542.44 11190.17 13220.15 12125.27 [4,] 10674.72 10029.51 9388.610 10415.08 10677.72 11433.74 13518.95 12597.38 [5,] 10777.22 10500.98 9762.120 10601.61 10723.78 11963.12 13901.28 13406.97 $n [1] 12 12 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 10020.40 9053.652 8411.79 10124.46 10430.33 10985.30 12788.32 11496.24 [2,] 10738.78 10331.348 9309.60 10403.86 10654.56 11395.03 13651.97 12754.31 $out [1] 12185.15 8614.55 $group [1] 6 8 $names [1] "Jaar1" "jaar2" "jaar3" "jaar4" "jaar5" "Jaar6" "Jaar7" "jaar8" Warning message: In bxp(list(stats = c(9042.56, 9887.22, 10379.59, 10674.725, 10777.22, : some notches went outside hinges ('box'): maybe set notch=FALSE > 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/23oqt1229173821.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/37kn61229173821.tab") > > system("convert tmp/1ie2e1229173821.ps tmp/1ie2e1229173821.png") > > > proc.time() user system elapsed 1.141 0.245 1.206