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(107.1 + ,118.4 + ,111.4 + ,104 + ,110.7 + ,121.4 + ,114.1 + ,107.9 + ,117.1 + ,128.8 + ,121.8 + ,113.8 + ,118.7 + ,131.7 + ,127.6 + ,113.8 + ,126.5 + ,141.7 + ,129.9 + ,123.1 + ,127.5 + ,142.9 + ,128 + ,125.1 + ,134.6 + ,139.4 + ,123.5 + ,137.6 + ,131.8 + ,134.7 + ,124 + ,134 + ,135.9 + ,125 + ,127.1 + ,140.3 + ,142.7 + ,113.6 + ,127.6 + ,152.1 + ,141.7 + ,111.5 + ,128.4 + ,150.6 + ,153.4 + ,108.5 + ,131.4 + ,167.3 + ,145 + ,112.3 + ,135.1 + ,153.2 + ,137.7 + ,116.6 + ,134 + ,142 + ,148.3 + ,115.5 + ,144.5 + ,154.4 + ,152.2 + ,120.1 + ,147.3 + ,158.5 + ,169.4 + ,132.9 + ,150.9 + ,180.9 + ,168.6 + ,128.1 + ,148.7 + ,181.3 + ,161.1 + ,129.3 + ,141.4 + ,172.4 + ,174.1 + ,132.5 + ,138.9 + ,192 + ,179 + ,131 + ,139.8 + ,199.3 + ,190.6 + ,124.9 + ,145.6 + ,215.4 + ,190 + ,120.8 + ,147.9 + ,214.3 + ,181.6 + ,122 + ,148.5 + ,201.5 + ,174.8 + ,122.1 + ,151.1 + ,190.5 + ,180.5 + ,127.4 + ,157.5 + ,196 + ,196.8 + ,135.2 + ,167.5 + ,215.7 + ,193.8 + ,137.3 + ,172.3 + ,209.4 + ,197 + ,135 + ,173.5 + ,214.1 + ,216.3 + ,136 + ,187.5 + ,237.8 + ,221.4 + ,138.4 + ,205.5 + ,239 + ,217.9 + ,134.7 + ,195.1 + ,237.8 + ,229.7 + ,138.4 + ,204.5 + ,251.5 + ,227.4 + ,133.9 + ,204.5 + ,248.8 + ,204.2 + ,133.6 + ,201.7 + ,215.4 + ,196.6 + ,141.2 + ,207 + ,201.2 + ,198.8 + ,151.8 + ,206.6 + ,203.1 + ,207.5 + ,155.4 + ,210.6 + ,214.2 + ,190.7 + ,156.6 + ,211.1 + ,188.9 + ,201.6 + ,161.6 + ,215 + ,203 + ,210.5 + ,160.7 + ,223.9 + ,213.3 + ,223.5 + ,156 + ,238.2 + ,228.5 + ,223.8 + ,159.5 + ,238.9 + ,228.2 + ,231.2 + ,168.7 + ,229.6 + ,240.9 + ,244 + ,169.9 + ,232.2 + ,258.8 + ,234.7 + ,169.9 + ,222.1 + ,248.5 + ,250.2 + ,185.9 + ,221.6 + ,269.2 + ,265.7 + ,190.8 + ,227.3 + ,289.6 + ,287.6 + ,195.8 + ,221 + ,323.4 + ,283.3 + ,211.9 + ,213.6 + ,317.2 + ,295.4 + ,227.1 + ,243.4 + ,322.8 + ,312.3 + ,251.3 + ,253.8 + ,340.9 + ,333.8 + ,256.7 + ,265.3 + ,368.2 + ,347.7 + ,251.9 + ,268.2 + ,388.5 + ,383.2 + ,251.2 + ,268.5 + ,441.2 + ,407.1 + ,270.3 + ,266.9 + ,474.3 + ,413.6 + ,267.2 + ,268.4 + ,483.9 + ,362.7 + ,243 + ,250.8 + ,417.9 + ,321.9 + ,229.9 + ,231.2 + ,365.9 + ,239.4 + ,187.2 + ,192 + ,263 + ,191 + ,178.2 + ,171.4 + ,199.4) + ,dim=c(4 + ,61) + ,dimnames=list(c('Grond' + ,'Leven' + ,'Indus' + ,'Energie') + ,1:61)) > y <- array(NA,dim=c(4,61),dimnames=list(c('Grond','Leven','Indus','Energie'),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: 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/1g32b1229867439.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,] 107.1 108.5 111.4 104.0 [2,] 153.4 128.1 139.8 167.3 [3,] 196.8 138.4 187.5 213.3 [4,] 234.7 169.9 222.1 251.5 [5,] 347.7 229.9 268.5 368.2 $n [1] 61 61 61 61 $conf [,1] [,2] [,3] [,4] [1,] 180.3532 129.9439 170.8509 196.2665 [2,] 213.2468 146.8561 204.1491 230.3335 $out [1] 383.2 407.1 413.6 362.7 251.3 256.7 251.9 251.2 270.3 267.2 243.0 388.5 [13] 441.2 474.3 483.9 417.9 $group [1] 1 1 1 1 2 2 2 2 2 2 2 4 4 4 4 4 $names [1] "Grond" "Leven" "Indus" "Energie" > 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/2tgto1229867439.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/3jvs91229867439.tab") > > system("convert tmp/1g32b1229867439.ps tmp/1g32b1229867439.png") > > > proc.time() user system elapsed 0.411 0.178 0.505