R version 2.8.0 (2008-10-20) 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(147768,267037,137507,258113,136919,262813,136151,267413,133001,267366,125554,264777,119647,258863,114158,254844,116193,254868,152803,277267,161761,285351,160942,286602,149470,283042,139208,276687,134588,277915,130322,277128,126611,277103,122401,275037,117352,270150,112135,267140,112879,264993,148729,287259,157230,291186,157221,292300,146681,288186,136524,281477,132111,282656,125326,280190,122716,280408,116615,276836,113719,275216,110737,274352,112093,271311,143565,289802,149946,290726,149147,292300,134339,278506,122683,269826,115614,265861,116566,269034,111272,264176,104609,255198,101802,253353,94542,246057,93051,235372,124129,258556,130374,260993,123946,254663,114971,250643,105531,243422,104919,247105,104782,248541,101281,245039,94545,237080,93248,237085,84031,225554,87486,226839,115867,247934,120327,248333,117008,246969,108811,245098),dim=c(2,61),dimnames=list(c('Jonger_dan_25','Mannen'),1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('Jonger_dan_25','Mannen'),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/rcomp/tmp/1fkh01229774372.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,] 84031 225554 [2,] 112093 253353 [3,] 122401 267140 [4,] 136524 277915 [5,] 161761 292300 $n [1] 61 61 $conf [,1] [,2] [1,] 117458.7 262171.1 [2,] 127343.3 272108.9 $out numeric(0) $group numeric(0) $names [1] "Jonger_dan_25" "Mannen" > 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/291861229774372.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/315ag1229774372.tab") > system("convert tmp/1fkh01229774372.ps tmp/1fkh01229774372.png") > > > proc.time() user system elapsed 0.377 0.158 0.433