R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: i686-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(131 + ,116 + ,148 + ,135 + ,120 + ,134 + ,125 + ,131 + ,122 + ,120 + ,113 + ,130 + ,110 + ,138 + ,131 + ,118 + ,130 + ,119 + ,128 + ,NA + ,NA + ,134 + ,131 + ,159 + ,122 + ,118 + ,NA + ,NA + ,114 + ,120 + ,129 + ,108 + ,124 + ,NA + ,NA + ,90 + ,126 + ,126 + ,131 + ,125 + ,NA + ,NA + ,141 + ,157 + ,107 + ,138 + ,133 + ,NA + ,NA + ,152 + ,94 + ,142 + ,137 + ,138 + ,NA + ,NA + ,115 + ,77 + ,140 + ,133 + ,NA + ,NA + ,NA + ,129 + ,123 + ,117 + ,127 + ,NA + ,NA + ,NA + ,108 + ,92 + ,117 + ,131 + ,NA + ,NA + ,NA + ,116 + ,105 + ,127 + ,132 + ,NA + ,NA + ,NA + ,109 + ,140 + ,134 + ,112 + ,NA + ,NA + ,NA + ,135 + ,127 + ,138 + ,109 + ,NA + ,NA + ,NA + ,NA + ,107 + ,113 + ,158 + ,NA + ,NA + ,NA + ,NA + ,109 + ,144 + ,116 + ,NA + ,NA + ,NA + ,NA + ,131 + ,152 + ,133 + ,NA + ,NA + ,NA + ,NA + ,117 + ,140 + ,129 + ,NA + ,NA + ,NA + ,NA + ,117 + ,135 + ,108 + ,NA + ,NA + ,NA + ,NA + ,167 + ,127 + ,144 + ,NA + ,NA + ,NA + ,NA + ,141 + ,131 + ,142 + ,NA + ,NA + ,NA + ,NA + ,128 + ,131 + ,147 + ,NA + ,NA + ,NA + ,NA + ,96 + ,153 + ,139 + ,NA + ,NA + ,NA + ,NA + ,129 + ,121 + ,126 + ,NA + ,NA + ,NA + ,NA + ,118 + ,105 + ,140 + ,NA + ,NA + ,NA + ,NA + ,118 + ,123 + ,120 + ,NA + ,NA + ,NA + ,NA + ,122 + ,123 + ,113 + ,NA + ,NA + ,NA + ,NA + ,118 + ,129 + ,NA + ,NA + ,NA + ,NA + ,NA + ,113 + ,117 + ,NA + ,NA + ,NA + ,NA + ,NA + ,128 + ,101 + ,NA + ,NA + ,NA + ,NA + ,NA + ,150 + ,112 + ,NA + ,NA + ,NA + ,NA + ,NA + ,126 + ,138 + ,NA + ,NA + ,NA + ,NA + ,NA + ,136 + ,150 + ,NA + ,NA + ,NA + ,NA + ,NA + ,108 + ,134 + ,NA + ,NA + ,NA + ,NA + ,NA + ,139 + ,145 + ,NA + ,NA + ,NA + ,NA + ,NA + ,96 + ,117 + ,NA + ,NA + ,NA + ,NA + ,NA + ,133 + ,114 + ,NA + ,NA + ,NA + ,NA + ,NA + ,102 + ,102 + ,NA + ,NA + ,NA + ,NA + ,NA + ,128 + ,151 + ,NA + ,NA + ,NA + ,NA + ,NA + ,108 + ,134 + ,NA + ,NA + ,NA + ,NA + ,NA + ,130 + ,126 + ,NA + ,NA + ,NA + ,NA + ,NA + ,89 + ,127 + ,NA + ,NA + ,NA + ,NA + ,NA + ,129 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,125 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,115 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,141 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,111 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,121 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,135 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,105 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,148 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,126 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,118 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,114 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,133 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,118 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,99 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,146 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,122 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,115 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,118 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,130 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,130 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,128 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,124 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,122 + ,NA + ,NA + ,NA + ,NA + ,NA + ,NA + ,102 + ,NA + ,NA + ,NA + ,NA + ,NA) + ,dim=c(7 + ,67) + ,dimnames=list(c('4' + ,'5' + ,'6' + ,'7' + ,'8' + ,'9' + ,'10') + ,1:67)) > y <- array(NA,dim=c(7,67),dimnames=list(c('4','5','6','7','8','9','10'),1:67)) > 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' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Notched Boxplots (v1.0.6) 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 > # > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1m6fb1382559324.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] [1,] 90 89.0 101 108.0 118.0 110 125.0 [2,] 114 113.5 117 117.5 122.0 110 125.0 [3,] 130 122.0 129 131.0 126.5 122 131.5 [4,] 134 130.0 140 137.5 131.5 134 138.0 [5,] 152 150.0 159 158.0 138.0 134 138.0 $n [1] 14 67 42 27 8 2 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 121.5545 118.815 123.3926 124.9186 121.1932 95.18651 116.976 [2,] 138.4455 125.185 134.6074 137.0814 131.8068 148.81349 146.024 $out [1] 157 77 167 $group [1] 2 2 2 $names [1] "4" "5" "6" "7" "8" "9" "10" Warning message: In bxp(list(stats = c(90, 114, 130, 134, 152, 89, 113.5, 122, 130, : 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/2zcq71382559324.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/33zk71382559325.tab") > > try(system("convert tmp/1m6fb1382559324.ps tmp/1m6fb1382559324.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.233 0.430 1.635