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(5,6,445,369,7,5,301,380,6,7,350,474,2,10,305,413,7,10,450,537,9,5,360,439,11,8,287,355,7,2,417,473,7,11,361,435,14,7,478,478,3,11,302,450,4,9,294,365,4,2,300,315,5,3,364,340,4,12,356,326,7,9,340,483,6,7,377,406,10,4,507,409,7,6,321,423,7,9,354,404,5,10,549,551,9,2,444,467,2,6,400,332,1,2,401,442,3,6,259,305,7,6,288,368,7,9,346,411,4,2,287,318,7,10,381,398,8,16,474,586,4,4,329,367,4,4,423,383,5,11,407,533,7,3,412,527,5,5,566,418,7,3,372,576,3,5,290,359,4,11,354,342,6,8,370,456,4,3,377,406,7,1,467,374,5,7,409,568,5,5,310,335,5,6,434,458,0,9,339,456,3,7,385,386,7,8,469,457,6,4,313,396,4,6,373,366,3,4,310,499,6,5,320,354,2,5,340,365,5,13,489,594,3,4,419,456,6,8,460,366,4,4,324,398,5,5,352,468,7,9,473,609,6,4,340,418,4,8,282,352),dim=c(4,60),dimnames=list(c('aantdoddon','aantdodvrij','aantongdon','aantongvrij'),1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('aantdoddon','aantdodvrij','aantongdon','aantongvrij'),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 = 'blue' > 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/1nz8i1260460352.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,] 0 1 259.0 305.0 [2,] 4 4 320.5 366.0 [3,] 5 6 362.5 410.0 [4,] 7 9 421.0 467.5 [5,] 11 16 566.0 609.0 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 4.388069 4.980114 342.0003 389.2963 [2,] 5.611931 7.019886 382.9997 430.7037 $out [1] 14 $group [1] 1 $names [1] "aantdoddon" "aantdodvrij" "aantongdon" "aantongvrij" > 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/2v8br1260460352.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/3uia91260460352.tab") > > system("convert tmp/1nz8i1260460352.ps tmp/1nz8i1260460352.png") > > > proc.time() user system elapsed 0.390 0.177 1.873