R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(3,4,5,4,2,4,5,6,5,6,2,2,4,5,6,5,4,2,2,5,5,6,5,5,3,2,5,6,5,7,7,1,1,5,7,7,4,7,1,1,4,1,5,7,7,1,1,4,4,6,7,7,1,1,4,7,6,5,4,3,1,2,7,7,2,7,1,1,6,6,7,4,7,1,1,5,5,7,6,6,5,1,6,7,7,5,6,2,1,5,6,7,5,7,2,1,5,4,6,6,7,5,1,6,2,7,6,7,4,1,4,5,4,5,6,3,2,4,5,6,5,6,3,3,4,5,6,6,6,3,2,5,5,6,5,5,2,1,4,5,7,7,7,6,1,6,7,7,6,7,6,1,6,5,7,6,7,6,1,7,4,7,7,7,6,1,6,6,6,3,7,1,1,7,7,7,5,7,2,1,7,1,7,6,7,1,1,5,6,7,6,6,1,1,7,7,2,3,3,1,1,6,5,5,3,5,1,1,5,3,5,4,5,1,1,3,4,4,4,6,2,1,5,5,4,6,7,3,1,4,7,6,5,7,4,1,4,3,7,6,7,3,1,5,2,7,6,7,3,1,3,5,4,5,5,2,1,6,7,6,4,2,1,1,5,4,4,5,2,2,1,4,5,6,6,2,4,1,4,6,5,6,6,5,1,7,7,6,4,7,4,1,6,6,5,6,6,4,1,6,5,6,6,6,4,1,6,7),dim=c(28,11),dimnames=list(c('Q1_1','Q1_2','Q1_3','Q1_4','Q1_5','Q1_6','Q1_7','Q1_8','Q1_9','Q1_10','Q1_11','Q1_12','Q1_13','Q1_14','Q1_15','Q1_16','Q1_17','Q1_18','Q1_19','Q1_20','Q1_21','Q1_22','Q1_23','Q1_24','Q1_25','Q1_26','Q1_27','Q1_28'),1:11)) > y <- array(NA,dim=c(28,11),dimnames=list(c('Q1_1','Q1_2','Q1_3','Q1_4','Q1_5','Q1_6','Q1_7','Q1_8','Q1_9','Q1_10','Q1_11','Q1_12','Q1_13','Q1_14','Q1_15','Q1_16','Q1_17','Q1_18','Q1_19','Q1_20','Q1_21','Q1_22','Q1_23','Q1_24','Q1_25','Q1_26','Q1_27','Q1_28'),1:11)) > 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/wessaorg/rcomp/tmp/1ct661318509675.ps",horizontal=F,onefile=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] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 2 3.0 3 1.0 1 2 5.0 5 3 5 1.0 1 4 1 [2,] 4 4.5 5 1.5 1 4 5.5 6 4 6 1.0 1 4 3 [3,] 5 5.0 6 3.0 1 5 7.0 6 5 7 2.0 1 5 4 [4,] 6 6.0 7 3.5 1 6 7.0 7 5 7 3.5 1 6 5 [5,] 7 7.0 7 6.0 1 7 7.0 7 6 7 6.0 1 7 6 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 4 4 4.0 1.0 1 3.0 4 6 5.0 5.0 1 1 [2,] 5 5 5.5 1.0 1 4.5 4 6 5.5 5.5 2 1 [3,] 6 6 7.0 2.0 1 5.0 5 6 6.0 6.0 3 1 [4,] 7 6 7.0 3.5 1 5.5 5 7 6.0 7.0 4 1 [5,] 7 7 7.0 6.0 1 7.0 6 7 6.0 7.0 6 1 [,27] [,28] [1,] 3 5 [2,] 4 5 [3,] 5 6 [4,] 6 7 [5,] 7 7 $n [1] 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 [26] 11 11 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 4.047224 4.285418 5.047224 2.047224 1 4.047224 6.285418 5.523612 [2,] 5.952776 5.714582 6.952776 3.952776 1 5.952776 7.714582 6.476388 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 4.523612 6.523612 0.8090302 1 4.047224 3.047224 5.047224 5.523612 [2,] 5.476388 7.476388 3.1909698 1 5.952776 4.952776 6.952776 6.476388 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 6.285418 0.8090302 1 4.523612 4.523612 5.523612 5.761806 5.285418 [2,] 7.714582 3.1909698 1 5.476388 5.476388 6.476388 6.238194 6.714582 [,25] [,26] [,27] [,28] [1,] 2.047224 1 4.047224 5.047224 [2,] 3.952776 1 5.952776 6.952776 $out [1] 2 2 2 2 2 3 2 2 2 2 2 4 7 7 4 2 2 $group [1] 5 5 9 10 12 12 17 19 19 21 21 22 23 23 23 24 26 $names [1] "Q1_1" "Q1_2" "Q1_3" "Q1_4" "Q1_5" "Q1_6" "Q1_7" "Q1_8" "Q1_9" [10] "Q1_10" "Q1_11" "Q1_12" "Q1_13" "Q1_14" "Q1_15" "Q1_16" "Q1_17" "Q1_18" [19] "Q1_19" "Q1_20" "Q1_21" "Q1_22" "Q1_23" "Q1_24" "Q1_25" "Q1_26" "Q1_27" [28] "Q1_28" Warning message: In bxp(list(stats = c(2, 4, 5, 6, 7, 3, 4.5, 5, 6, 7, 3, 5, 6, 7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/238l31318509675.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/wessaorg/rcomp/tmp/33khd1318509675.tab") > > try(system("convert tmp/1ct661318509675.ps tmp/1ct661318509675.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.539 0.088 0.620