R version 2.6.0 (2007-10-03) Copyright (C) 2007 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(112.7,127.5,134,132.8,134.9,118.4,128.6,126.5,123.3,136.3,108.1,116.6,125.8,124.8,133.2,105.4,127.4,136.4,122,127.2,114.6,105,114.9,117.4,122.7,106.9,108.3,110.9,117.9,120.5,115.9,125,125.5,137.4,137.8,109.8,111.6,116.8,114.6,119.1,101.8,106.5,116.8,124.7,124.3,114.2,130.3,125.5,129.6,134.3,110.8,115,104.2,109.4,121.7,108.4,116.1,115.1,120.9,125),dim=c(5,12),dimnames=list(c('jaar1','jaar2','jaar3','jaar4','jaar5 '),1:12)) > y <- array(NA,dim=c(5,12),dimnames=list(c('jaar1','jaar2','jaar3','jaar4','jaar5 '),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: 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/1pfp01197640638.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] [1,] 101.8 105.00 104.20 109.40 119.1 [2,] 107.5 109.95 115.00 117.65 122.2 [3,] 110.3 116.35 121.15 122.65 126.1 [4,] 114.4 127.45 126.15 127.20 134.6 [5,] 118.4 130.30 136.40 137.40 137.8 $n [1] 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [1,] 107.1529 108.3681 116.0644 118.2942 120.4443 [2,] 113.4471 124.3319 126.2356 127.0058 131.7557 $out numeric(0) $group numeric(0) $names [1] "jaar1" "jaar2" "jaar3" "jaar4" "jaar5\r" Warning messages: 1: In bxp(list(stats = c(101.8, 107.5, 110.3, 114.4, 118.4, 105, 109.95, : some notches went outside hinges ('box'): maybe set notch=FALSE 2: In axis(side = 1, at = 1:5, labels = c("jaar1", "jaar2", "jaar3", : font width unknown for character 0xd 3: In axis(side = 1, at = 1:5, labels = c("jaar1", "jaar2", "jaar3", : font width unknown for character 0xd 4: In axis(side = 1, at = 1:5, labels = c("jaar1", "jaar2", "jaar3", : font width unknown for character 0xd > dev.off() null device 1 > 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/2xah01197640638.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/3h8pz1197640638.tab") > > system("convert tmp/1pfp01197640638.ps tmp/1pfp01197640638.png") > > > proc.time() user system elapsed 0.605 0.155 0.688