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(97.4 + ,96.4 + ,89.8 + ,96.5 + ,97 + ,92 + ,86 + ,96.1 + ,105.4 + ,102 + ,92.7 + ,96.3 + ,102.7 + ,99.7 + ,126.8 + ,96.1 + ,98.1 + ,102 + ,92.8 + ,95.4 + ,104.5 + ,98.9 + ,87.8 + ,95.3 + ,87.4 + ,87.4 + ,100 + ,93.9 + ,89.9 + ,94.4 + ,72.4 + ,94 + ,109.8 + ,109.3 + ,104.9 + ,93.6 + ,111.7 + ,116.4 + ,52.3 + ,93.5 + ,98.6 + ,101 + ,65.3 + ,93.5 + ,96.9 + ,105.5 + ,110.2 + ,93.5 + ,95.1 + ,97.8 + ,54.4 + ,93 + ,97 + ,95.5 + ,47.5 + ,93.1 + ,112.7 + ,113.7 + ,65.2 + ,93.3 + ,102.9 + ,103.7 + ,69.8 + ,93.2 + ,97.4 + ,100.8 + ,53.6 + ,93.1 + ,111.4 + ,113.8 + ,116.1 + ,93.1 + ,87.4 + ,84.6 + ,56.6 + ,93.2 + ,96.8 + ,95.3 + ,47.2 + ,93 + ,114.1 + ,110 + ,90.6 + ,93.1 + ,110.3 + ,107.5 + ,60.4 + ,93.2 + ,103.9 + ,107.6 + ,59.3 + ,93.1 + ,101.6 + ,116 + ,131.6 + ,93.1 + ,94.6 + ,96.9 + ,59.4 + ,93.1 + ,95.9 + ,97 + ,65.5 + ,92.3 + ,104.7 + ,108.1 + ,70.5 + ,92.3 + ,102.8 + ,101.9 + ,81 + ,92.3 + ,98.1 + ,107.2 + ,73.3 + ,92.3 + ,113.9 + ,110.2 + ,107.5 + ,92.1 + ,80.9 + ,78.7 + ,88.9 + ,92.1 + ,95.7 + ,96.5 + ,55.8 + ,92.1 + ,113.2 + ,115.2 + ,80.5 + ,92 + ,105.9 + ,104.7 + ,86.3 + ,92 + ,108.8 + ,109.1 + ,112.6 + ,92.3 + ,102.3 + ,108.4 + ,148.6 + ,93.3 + ,99 + ,95.5 + ,47.1 + ,92.4 + ,100.7 + ,97.8 + ,57.8 + ,92.6 + ,115.5 + ,115.1 + ,81 + ,92.7 + ,100.7 + ,96.2 + ,60.1 + ,92.4 + ,109.9 + ,112 + ,76.1 + ,92.2 + ,114.6 + ,111.8 + ,82.5 + ,92.7 + ,85.4 + ,82.5 + ,66.8 + ,92.7 + ,100.5 + ,100.8 + ,58.7 + ,92.8 + ,114.8 + ,116 + ,54.2 + ,92.8 + ,116.5 + ,116.3 + ,103.3 + ,92.8 + ,112.9 + ,116.6 + ,77.8 + ,92.7 + ,102 + ,112.9 + ,118.4 + ,92.8 + ,106 + ,100.9 + ,64.9 + ,93.6 + ,105.3 + ,104.1 + ,40.8 + ,93.4 + ,118.8 + ,117.4 + ,77.7 + ,93.8 + ,106.1 + ,103.3 + ,66.2 + ,93.8 + ,109.3 + ,111.6 + ,68.6 + ,93.9 + ,117.2 + ,115 + ,81.9 + ,94 + ,92.5 + ,91 + ,62.5 + ,93.9 + ,104.2 + ,104.8 + ,59.2 + ,93.9 + ,112.5 + ,114.1 + ,71.8 + ,94.1 + ,122.4 + ,124.2 + ,69.8 + ,94.2 + ,113.3 + ,117.8 + ,81.4 + ,94.3 + ,100 + ,109.8 + ,153.8 + ,94.2) + ,dim=c(4 + ,60) + ,dimnames=list(c('ip' + ,'ppku' + ,'ipku' + ,'afzetprijs') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('ip','ppku','ipku','afzetprijs'),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 = 'value' > xlab = 'variables' > main = 'Notched Boxplots' > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/freestat/rcomp/tmp/1i10p1257700929.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,] 80.90 78.70 40.80 92.0 [2,] 97.40 97.40 59.75 92.7 [3,] 103.40 104.75 72.85 93.1 [4,] 111.55 112.45 90.20 93.9 [5,] 122.40 124.20 131.60 95.4 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 100.5137 101.6801 66.6389 92.85523 [2,] 106.2863 107.8199 79.0611 93.34477 $out [1] 148.6 153.8 96.5 96.1 96.3 96.1 $group [1] 3 3 4 4 4 4 $names [1] "ip" "ppku" "ipku" "afzetprijs" > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/2n10w1257700929.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/freestat/rcomp/tmp/3wati1257700929.tab") > > system("convert tmp/1i10p1257700929.ps tmp/1i10p1257700929.png") > > > proc.time() user system elapsed 0.565 0.229 0.664