R version 2.7.2 (2008-08-25) 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(110.40 + ,109.20 + ,99.90 + ,96.40 + ,88.60 + ,99.80 + ,101.90 + ,94.30 + ,99.80 + ,106.20 + ,98.30 + ,100.30 + ,81.00 + ,86.40 + ,99.90 + ,94.70 + ,80.60 + ,99.90 + ,101.00 + ,104.10 + ,100.00 + ,109.40 + ,108.20 + ,100.10 + ,102.30 + ,93.40 + ,100.10 + ,90.70 + ,71.90 + ,100.20 + ,96.20 + ,94.10 + ,100.30 + ,96.10 + ,94.90 + ,100.60 + ,106.00 + ,96.40 + ,100.00 + ,103.10 + ,91.10 + ,100.10 + ,102.00 + ,84.40 + ,100.20 + ,104.70 + ,86.40 + ,100.00 + ,86.00 + ,88.00 + ,100.10 + ,92.10 + ,75.10 + ,100.10 + ,106.90 + ,109.70 + ,100.10 + ,112.60 + ,103.00 + ,100.50 + ,101.70 + ,82.10 + ,100.50 + ,92.00 + ,68.00 + ,100.50 + ,97.40 + ,96.40 + ,96.30 + ,97.00 + ,94.30 + ,96.30 + ,105.40 + ,90.00 + ,96.80 + ,102.70 + ,88.00 + ,96.80 + ,98.10 + ,76.10 + ,96.90 + ,104.50 + ,82.50 + ,96.80 + ,87.40 + ,81.40 + ,96.80 + ,89.90 + ,66.50 + ,96.80 + ,109.80 + ,97.20 + ,96.80 + ,111.70 + ,94.10 + ,97.00 + ,98.60 + ,80.70 + ,97.00 + ,96.90 + ,70.50 + ,97.00 + ,95.10 + ,87.80 + ,96.80 + ,97.00 + ,89.50 + ,96.90 + ,112.70 + ,99.60 + ,97.20 + ,102.90 + ,84.20 + ,97.30 + ,97.40 + ,75.10 + ,97.30 + ,111.40 + ,92.00 + ,97.20 + ,87.40 + ,80.80 + ,97.30 + ,96.80 + ,73.10 + ,97.30 + ,114.10 + ,99.80 + ,97.30 + ,110.30 + ,90.00 + ,97.30 + ,103.90 + ,83.10 + ,97.30 + ,101.60 + ,72.40 + ,97.30 + ,94.60 + ,78.80 + ,98.10 + ,95.90 + ,87.30 + ,96.80 + ,104.70 + ,91.00 + ,96.80 + ,102.80 + ,80.10 + ,96.80 + ,98.10 + ,73.60 + ,96.80 + ,113.90 + ,86.40 + ,96.80 + ,80.90 + ,74.50 + ,96.80 + ,95.70 + ,71.20 + ,96.80 + ,113.20 + ,92.40 + ,96.80 + ,105.90 + ,81.50 + ,96.80 + ,108.80 + ,85.30 + ,96.80 + ,102.30 + ,69.90 + ,96.80 + ,99.00 + ,84.20 + ,96.90 + ,100.70 + ,90.70 + ,97.10 + ,115.50 + ,100.30 + ,97.10) + ,dim=c(3 + ,61) + ,dimnames=list(c('totprod' + ,'clothprod' + ,'Price') + ,1:61)) > y <- array(NA,dim=c(3,61),dimnames=list(c('totprod','clothprod','Price'),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: 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/1hscw1225097740.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] [1,] 86.0 66.5 96.3 [2,] 96.2 80.6 96.8 [3,] 101.7 87.3 97.3 [4,] 106.0 94.1 100.0 [5,] 115.5 109.7 100.6 $n [1] 61 61 61 $conf [,1] [,2] [,3] [1,] 99.71748 84.56897 96.65265 [2,] 103.68252 90.03103 97.94735 $out [1] 81.0 80.9 $group [1] 1 1 $names [1] "totprod" "clothprod" "Price" Warning message: In bxp(list(stats = c(86, 96.2, 101.7, 106, 115.5, 66.5, 80.6, 87.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > 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/2el611225097740.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/3n99k1225097740.tab") > > system("convert tmp/1hscw1225097740.ps tmp/1hscw1225097740.png") > > > proc.time() user system elapsed 0.607 0.154 0.667