R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-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(25 + ,25 + ,25 + ,25 + ,29 + ,30 + ,30 + ,29 + ,35 + ,30 + ,30 + ,30 + ,29 + ,30 + ,30 + ,26 + ,30 + ,30 + ,30 + ,35 + ,30 + ,30 + ,30 + ,50 + ,25 + ,29 + ,30 + ,25 + ,30 + ,30 + ,25 + ,42 + ,29 + ,15 + ,29 + ,30 + ,25 + ,20 + ,10 + ,30 + ,29 + ,30 + ,50 + ,25 + ,30 + ,30 + ,25 + ,50 + ,29 + ,30 + ,30 + ,30 + ,30 + ,30 + ,30 + ,29 + ,35 + ,40 + ,29 + ,26 + ,23 + ,25 + ,30 + ,30 + ,30 + ,30 + ,20 + ,29 + ,25 + ,25 + ,28 + ,30 + ,30 + ,25 + ,30 + ,31 + ,30 + ,29 + ,45 + ,30 + ,30 + ,35 + ,30 + ,30 + ,25 + ,50 + ,40 + ,20 + ,35 + ,22 + ,30 + ,25 + ,30 + ,30 + ,29 + ,50 + ,45 + ,30 + ,26 + ,30 + ,29 + ,35 + ,20 + ,29 + ,25 + ,30 + ,45 + ,35 + ,30 + ,30 + ,40 + ,20 + ,26 + ,29 + ,20 + ,25 + ,30 + ,30 + ,25 + ,30 + ,23 + ,25 + ,30 + ,30 + ,40 + ,30 + ,40 + ,35 + ,40 + ,30 + ,25 + ,33 + ,30 + ,30 + ,30 + ,35 + ,33 + ,35 + ,30 + ,40 + ,29 + ,25 + ,27 + ,30 + ,30 + ,35 + ,20 + ,30 + ,30 + ,25 + ,25 + ,30 + ,30 + ,30 + ,40 + ,40 + ,30 + ,40 + ,20 + ,50 + ,20 + ,30 + ,30 + ,30 + ,30 + ,25 + ,30 + ,30 + ,30 + ,30 + ,30 + ,30 + ,23 + ,30 + ,25 + ,50 + ,20 + ,23 + ,25 + ,29 + ,26 + ,40 + ,30 + ,30 + ,35 + ,20 + ,29 + ,25 + ,30 + ,30 + ,30 + ,50 + ,30 + ,35 + ,30 + ,30 + ,30 + ,35 + ,30 + ,35 + ,15 + ,30 + ,20 + ,35 + ,40 + ,30 + ,30 + ,40 + ,29 + ,30 + ,20 + ,35 + ,50 + ,30 + ,30 + ,40 + ,30 + ,50 + ,18 + ,15 + ,30 + ,23 + ,29 + ,30 + ,35 + ,30 + ,23 + ,30 + ,25 + ,26 + ,25 + ,30 + ,20 + ,25 + ,30 + ,29 + ,40 + ,30 + ,30 + ,30 + ,40 + ,37 + ,20 + ,25 + ,30 + ,32 + ,35 + ,32 + ,30 + ,30 + ,35 + ,30 + ,25 + ,30 + ,24 + ,30 + ,35 + ,30 + ,30 + ,30 + ,30 + ,30 + ,25 + ,30 + ,25 + ,35 + ,30 + ,30 + ,30 + ,30 + ,30 + ,30 + ,35 + ,32 + ,30 + ,20 + ,20 + ,30 + ,35 + ,30 + ,40 + ,29 + ,26 + ,40 + ,25 + ,35 + ,30 + ,23 + ,30 + ,27 + ,35 + ,30 + ,20 + ,30 + ,25 + ,50 + ,30 + ,30 + ,29 + ,35 + ,29 + ,25 + ,30 + ,45 + ,30 + ,25 + ,29 + ,25 + ,40 + ,30 + ,30 + ,40 + ,30 + ,30 + ,29 + ,35 + ,35 + ,30 + ,30 + ,27 + ,30 + ,30 + ,29 + ,50 + ,30 + ,30 + ,20 + ,25 + ,25 + ,30 + ,27 + ,29 + ,50 + ,50 + ,30 + ,30 + ,40 + ,20 + ,30 + ,30 + ,30 + ,25 + ,30 + ,30 + ,30 + ,30 + ,40 + ,25 + ,35 + ,30 + ,30 + ,35 + ,20 + ,20 + ,50 + ,35 + ,29 + ,50 + ,40 + ,30 + ,45 + ,30 + ,40 + ,30 + ,29 + ,25 + ,40 + ,35 + ,25 + ,21 + ,30 + ,30 + ,30 + ,30 + ,15 + ,30 + ,30 + ,30 + ,30 + ,30 + ,25 + ,30 + ,30 + ,30 + ,30 + ,25 + ,25 + ,40 + ,30 + ,33 + ,40 + ,26 + ,30 + ,37 + ,25 + ,29 + ,30 + ,25 + ,29 + ,30 + ,30 + ,30 + ,30 + ,30 + ,22 + ,25 + ,30 + ,40 + ,30 + ,29 + ,25 + ,30 + ,30 + ,29 + ,30 + ,30 + ,30 + ,35 + ,30 + ,35 + ,30 + ,12 + ,15 + ,25 + ,30 + ,30 + ,30 + ,25 + ,20 + ,30 + ,35 + ,35 + ,29 + ,40 + ,30 + ,40 + ,30 + ,25 + ,30 + ,20 + ,29 + ,28 + ,30 + ,25 + ,30 + ,50 + ,30 + ,30 + ,29 + ,30 + ,35 + ,20 + ,30 + ,30 + ,30 + ,30 + ,30 + ,40 + ,30 + ,30 + ,35 + ,25 + ,30 + ,50 + ,30 + ,30 + ,30 + ,30 + ,25 + ,30 + ,30 + ,30 + ,25 + ,30 + ,30 + ,30 + ,25 + ,30 + ,30 + ,26 + ,30 + ,30 + ,30 + ,30 + ,25 + ,20 + ,30 + ,35 + ,30 + ,20 + ,20 + ,25 + ,30 + ,30 + ,30 + ,30 + ,29 + ,35 + ,25 + ,30 + ,30 + ,35 + ,35 + ,30 + ,20 + ,30 + ,30 + ,30 + ,25 + ,30 + ,30 + ,26 + ,30 + ,25 + ,30 + ,50 + ,30 + ,20 + ,29 + ,30 + ,30 + ,30 + ,30 + ,30 + ,40 + ,30 + ,35 + ,27 + ,30 + ,25 + ,29 + ,25 + ,30 + ,25 + ,30 + ,29 + ,25 + ,20 + ,30 + ,25 + ,32 + ,30 + ,29 + ,30 + ,30 + ,30 + ,30 + ,25 + ,25 + ,30 + ,30 + ,60 + ,20 + ,30 + ,35 + ,25 + ,30 + ,25 + ,30 + ,40 + ,25 + ,30 + ,29 + ,29 + ,30 + ,29 + ,26 + ,18 + ,30 + ,40 + ,30 + ,30 + ,30 + ,30 + ,30 + ,29 + ,30 + ,30 + ,30 + ,35 + ,30 + ,30 + ,30 + ,20 + ,29 + ,20 + ,30 + ,30 + ,25 + ,30 + ,40 + ,30 + ,30 + ,25 + ,40 + ,30 + ,30 + ,29 + ,25 + ,30 + ,35 + ,30 + ,20 + ,30 + ,20 + ,25 + ,30 + ,40 + ,25 + ,47 + ,20 + ,20 + ,30 + ,30 + ,25 + ,30 + ,25 + ,40 + ,29 + ,40 + ,29 + ,30 + ,30 + ,30 + ,35 + ,30 + ,20 + ,30 + ,24 + ,30 + ,40 + ,30 + ,30 + ,15 + ,35 + ,18 + ,30 + ,25 + ,30 + ,30 + ,30 + ,15 + ,20 + ,30 + ,25 + ,30 + ,20 + ,30 + ,30 + ,30 + ,25 + ,40 + ,50 + ,30 + ,30 + ,35 + ,30 + ,30 + ,15 + ,30 + ,25 + ,30 + ,30 + ,26 + ,30 + ,25 + ,25 + ,30 + ,30 + ,30 + ,50 + ,30 + ,25 + ,30 + ,25 + ,30 + ,26 + ,25 + ,34 + ,30 + ,25 + ,30 + ,35 + ,30 + ,40 + ,30 + ,30 + ,29 + ,30 + ,29 + ,30 + ,50 + ,30 + ,15 + ,30 + ,25 + ,50 + ,30 + ,30 + ,35 + ,35 + ,25 + ,23 + ,30 + ,30 + ,30 + ,35 + ,25 + ,15 + ,30 + ,29 + ,30 + ,15 + ,30 + ,40 + ,29 + ,30 + ,25 + ,25 + ,50 + ,30 + ,1 + ,30 + ,30 + ,30 + ,35 + ,30 + ,30 + ,35 + ,30 + ,20 + ,20 + ,20 + ,30 + ,35 + ,30 + ,25 + ,29 + ,35 + ,40 + ,30 + ,35 + ,29 + ,30 + ,30 + ,30 + ,29 + ,30 + ,30 + ,30 + ,30 + ,30 + ,30 + ,30 + ,35 + ,30 + ,30 + ,30 + ,25 + ,50 + ,30 + ,30 + ,30 + ,25 + ,25 + ,35 + ,30 + ,35 + ,30 + ,29 + ,30 + ,35 + ,30 + ,30 + ,35 + ,25 + ,25 + ,29 + ,35 + ,50 + ,30 + ,30 + ,29 + ,30 + ,30 + ,30 + ,20 + ,30 + ,30 + ,20 + ,30 + ,25 + ,20 + ,30 + ,50 + ,20 + ,40 + ,40 + ,30 + ,29 + ,35 + ,25 + ,20 + ,20 + ,21 + ,29 + ,35 + ,30 + ,28 + ,30 + ,30 + ,35 + ,26 + ,30 + ,25 + ,25 + ,30 + ,30 + ,30 + ,25 + ,35 + ,30 + ,35 + ,35 + ,30 + ,29 + ,30 + ,26 + ,30 + ,27 + ,30 + ,30 + ,50 + ,25 + ,30 + ,30 + ,30 + ,40 + ,30 + ,32 + ,25 + ,35 + ,30 + ,30 + ,20 + ,30 + ,40 + ,30 + ,26 + ,30 + ,40 + ,30 + ,30 + ,26 + ,35 + ,35 + ,26 + ,50 + ,30 + ,30 + ,25 + ,30 + ,40 + ,25 + ,30 + ,25 + ,30 + ,15 + ,40 + ,30 + ,25 + ,30 + ,30 + ,30 + ,30 + ,30 + ,25 + ,25 + ,30 + ,20 + ,18 + ,25 + ,30 + ,29 + ,13 + ,27 + ,30 + ,30 + ,30 + ,30 + ,25 + ,30 + ,35 + ,29 + ,30 + ,29 + ,30 + ,30 + ,25 + ,45 + ,29 + ,30 + ,30 + ,25 + ,25 + ,29 + ,30 + ,30 + ,30 + ,29 + ,30 + ,23 + ,35 + ,35 + ,10 + ,32 + ,29 + ,45 + ,30 + ,29 + ,30 + ,15 + ,50 + ,35 + ,25 + ,25 + ,30 + ,30 + ,30 + ,30 + ,30 + ,40 + ,29 + ,25 + ,30 + ,25 + ,30 + ,25 + ,25 + ,30 + ,35 + ,30 + ,25 + ,20 + ,30 + ,30 + ,30 + ,15 + ,30 + ,35 + ,50 + ,35 + ,30 + ,30 + ,25 + ,30 + ,30 + ,15 + ,30 + ,25 + ,30 + ,30 + ,25 + ,29 + ,30 + ,30 + ,40 + ,25 + ,30 + ,30 + ,25 + ,35 + ,29 + ,30 + ,25 + ,30 + ,30 + ,25 + ,30 + ,30 + ,30 + ,25 + ,35 + ,25 + ,29 + ,25 + ,30 + ,30 + ,50 + ,30 + ,30 + ,30 + ,30 + ,30 + ,20 + ,25 + ,25 + ,35 + ,25 + ,30 + ,25 + ,50 + ,20 + ,45 + ,25 + ,35 + ,30 + ,40 + ,35 + ,30 + ,30 + ,30 + ,30 + ,23 + ,30 + ,25 + ,30 + ,15) + ,dim=c(1 + ,1018) + ,dimnames=list(c('V1') + ,1:1018)) > y <- array(NA,dim=c(1,1018),dimnames=list(c('V1'),1:1018)) > 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/1bm6h1444424321.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] [1,] 20 [2,] 26 [3,] 30 [4,] 30 [5,] 35 $n [1] 1018 $conf [,1] [1,] 29.80192 [2,] 30.19808 $out [1] 50 42 15 10 50 50 40 45 50 40 50 45 45 40 40 40 40 40 40 40 40 50 50 40 50 [26] 15 40 40 50 40 50 18 15 40 40 37 40 40 50 45 40 40 50 50 50 40 40 50 50 40 [51] 45 40 40 15 40 40 37 40 12 15 40 40 50 40 50 50 40 60 40 18 40 40 40 40 47 [76] 40 40 40 15 18 15 40 50 15 50 40 50 15 50 15 15 40 50 1 40 50 50 50 40 40 [101] 50 40 40 40 50 40 15 40 18 13 45 10 45 15 50 40 15 50 15 40 50 50 45 40 15 $group [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [38] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [75] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [112] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $names [1] "V1" Warning message: In bxp(list(stats = c(20, 26, 30, 30, 35), n = 1018, conf = c(29.8019188315049, : 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/23a801444424321.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/3d9to1444424321.tab") > > try(system("convert tmp/1bm6h1444424321.ps tmp/1bm6h1444424321.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.702 0.122 0.826