R version 2.8.1 (2008-12-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(115.6,98.2,111.9,98.71,107,98.54,107.1,98.2,100.6,96.92,99.2,99.06,108.4,99.65,103,99.82,99.8,99.99,115,100.33,90.8,99.31,95.9,101.1,114.4,101.1,108.2,100.93,112.6,100.85,109.1,100.93,105,99.6,105,101.88,118.5,101.81,103.7,102.38,112.5,102.74,116.6,102.82,96.6,101.72,101.9,103.47,116.5,102.98,119.3,102.68,115.4,102.9,108.5,103.03,111.5,101.29,108.8,103.69,121.8,103.68,109.6,104.2,112.2,104.08,119.6,104.16,104.1,103.05,105.3,104.66,115,104.46,124.1,104.95,116.8,105.85,107.5,106.23,115.6,104.86,116.2,107.44,116.3,108.23,119,108.45,111.9,109.39,118.6,110.15,106.9,109.13,103.2,110.28,118.6,110.17,118.7,109.99,102.8,109.26,100.6,109.11,94.9,107.06,94.5,109.53,102.9,108.92,95.3,109.24,92.5,109.12,102.7,109,91.5,107.23,89.5,109.49),dim=c(2,60),dimnames=list(c('Ipzb','Hicp'),1:60)) > y <- array(NA,dim=c(2,60),dimnames=list(c('Ipzb','Hicp'),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 = 'Index' > xlab = 'Tijdreeks' > 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/rcomp/tmp/1df921258041876.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,] 89.50 96.920 [2,] 102.75 101.015 [3,] 108.45 103.575 [4,] 115.60 108.340 [5,] 124.10 110.280 $n [1] 60 60 $conf [,1] [,2] [1,] 105.8289 102.0809 [2,] 111.0711 105.0691 $out numeric(0) $group numeric(0) $names [1] "Ipzb" "Hicp" > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/29oy81258041876.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/rcomp/tmp/3nhp71258041876.tab") > > system("convert tmp/1df921258041876.ps tmp/1df921258041876.png") > > > proc.time() user system elapsed 0.360 0.260 0.624