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(143.5 + ,95.0 + ,36.9 + ,196.2 + ,127.1 + ,61.5 + ,42.1 + ,200.7 + ,137.3 + ,88.5 + ,37.7 + ,146.5 + ,132.5 + ,93.3 + ,36.8 + ,143.6 + ,132.7 + ,89.2 + ,24.4 + ,141.5 + ,138.6 + ,101.3 + ,31.3 + ,137.5 + ,129.2 + ,97.0 + ,43.9 + ,138.7 + ,128.7 + ,102.2 + ,53.6 + ,135.5 + ,135.7 + ,100.3 + ,48.9 + ,136.4 + ,134.4 + ,78.2 + ,30.9 + ,112.1 + ,145.0 + ,105.9 + ,31.8 + ,109.0 + ,151.1 + ,119.9 + ,41.3 + ,123.8 + ,136.3 + ,108.0 + ,43.7 + ,151.2 + ,133.2 + ,77.0 + ,54.1 + ,139.2 + ,128.8 + ,93.1 + ,47.8 + ,115.7 + ,136.3 + ,109.5 + ,36.7 + ,147.6 + ,131.3 + ,100.4 + ,30.8 + ,126.1 + ,128.6 + ,99.0 + ,31.9 + ,122.8 + ,139.3 + ,113.9 + ,61.7 + ,137.3 + ,120.8 + ,102.1 + ,73.0 + ,142.0 + ,126.7 + ,101.6 + ,64.7 + ,137.4 + ,128.6 + ,84.0 + ,24.2 + ,89.4 + ,137.5 + ,110.7 + ,33.9 + ,108.0 + ,140.8 + ,111.6 + ,32.4 + ,117.7 + ,132.3 + ,110.7 + ,63.2 + ,127.3 + ,130.5 + ,73.1 + ,71.8 + ,121.0 + ,117.1 + ,87.5 + ,60.4 + ,104.1 + ,131.4 + ,109.6 + ,48.0 + ,119.5 + ,129.4 + ,99.3 + ,44.5 + ,116.7 + ,119.2 + ,92.1 + ,44.9 + ,96.1 + ,133.6 + ,109.3 + ,70.9 + ,125.0 + ,113.2 + ,94.5 + ,72.7 + ,118.8 + ,122.1 + ,91.4 + ,59.5 + ,114.9 + ,130.9 + ,82.9 + ,35.9 + ,79.3 + ,131.7 + ,103.3 + ,40.0 + ,90.5 + ,126.7 + ,96.0 + ,43.6 + ,87.8 + ,132.3 + ,104.8 + ,57.2 + ,109.4 + ,124.8 + ,65.8 + ,75.8 + ,88.9 + ,111.1 + ,78.7 + ,57.7 + ,97.4 + ,131.3 + ,100.3 + ,47.7 + ,112.0 + ,118.6 + ,85.0 + ,42.3 + ,86.8 + ,119.4 + ,94.5 + ,43.0 + ,82.9 + ,124.0 + ,97.9 + ,68.0 + ,105.2 + ,108.7 + ,91.9 + ,70.6 + ,89.1 + ,115.9 + ,87.2 + ,54.2 + ,85.5 + ,130.5 + ,84.4 + ,38.6 + ,87.1 + ,125.4 + ,99.2 + ,40.3 + ,85.2 + ,126.0 + ,105.4 + ,49.2 + ,88.2 + ,130.4 + ,110.9 + ,68.5 + ,104.0 + ,119.3 + ,69.8 + ,75.9 + ,96.4 + ,117.4 + ,86.8 + ,63.2 + ,82.3 + ,127.9 + ,106.7 + ,49.8 + ,114.1 + ,112.5 + ,88.8 + ,37.0 + ,88.9 + ,115.1 + ,96.9 + ,48.8 + ,93.6 + ,124.3 + ,108.1 + ,74.9 + ,101.8 + ,107.6 + ,93.7 + ,75.3 + ,96.6 + ,110.7 + ,94.8 + ,66.9 + ,93.7 + ,117.9 + ,79.8 + ,44.1 + ,68.4 + ,115.2 + ,95.6 + ,39.8 + ,68.7 + ,130.4 + ,107.9 + ,56.6 + ,81.2) + ,dim=c(4 + ,60) + ,dimnames=list(c('X1' + ,'X2' + ,'X3' + ,'X4') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('X1','X2','X3','X4'),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' > #'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/1g6sr1228899172.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.60 65.80 24.20 68.40 [2,] 119.35 88.00 38.15 89.25 [3,] 128.75 96.45 47.75 110.70 [4,] 132.60 105.10 62.45 131.40 [5,] 151.10 119.90 75.90 151.20 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 126.0473 92.962 42.79336 102.1024 [2,] 131.4527 99.938 52.70664 119.2976 $out [1] 61.5 196.2 200.7 $group [1] 2 4 4 $names [1] "X1" "X2" "X3" "X4" > 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/262q71228899172.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/36cx31228899172.tab") > > system("convert tmp/1g6sr1228899172.ps tmp/1g6sr1228899172.png") > > > proc.time() user system elapsed 0.391 0.145 0.546