R version 3.1.0 (2014-04-10) -- "Spring Dance" Copyright (C) 2014 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(NA,NA,255850.00,909027.00,2183210.00,1942369.00,1227833.00,395721.00,502856.00,609991.00,717126.00,824261.00,901825.71,901825.71,901825.71,901825.71,901825.71,901825.71,901825.71,901825.71,901825.71,901825.71,901825.71,901825.71,801892.00,801892.00,801892.00,801892.00,801892.00,801892.00,801892.00,801892.00,801892.00,801892.00,801892.00,801892.00,NA,NA,330729.00,1008894.00,1571067.00,1677335.67,1081506.00,NA,NA,NA,NA,NA,1458474.75,1458474.75,1458474.75,1458474.75,1458474.75,1458474.75,1458474.75,1458474.75,1458474.75,1458474.75,1458474.75,1458474.75),dim=c(12,5),dimnames=list(c('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018'),1:5)) > y <- array(NA,dim=c(12,5),dimnames=list(c('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018'),1:5)) > 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/12vjo1398631926.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,] 801892.0 801892.0 255850.0 801892.0 801892.0 801892.0 801892.0 [2,] 851858.9 851858.9 330729.0 901825.7 901825.7 901825.7 901825.7 [3,] 901825.7 901825.7 801892.0 909027.0 1458474.8 1458474.8 1081506.0 [4,] 1180150.2 1180150.2 901825.7 1008894.0 1571067.0 1677335.7 1227833.0 [5,] 1458474.8 1458474.8 1458474.8 1008894.0 2183210.0 1942369.0 1458474.8 [,8] [,9] [,10] [,11] [,12] [1,] 395721.0 502856.0 609991.0 717126.0 801892.0 [2,] 598806.5 652374.0 705941.5 759509.0 813076.5 [3,] 851858.9 851858.9 851858.9 851858.9 863043.4 [4,] 1180150.2 1180150.2 1180150.2 1180150.2 1180150.2 [5,] 1458474.8 1458474.8 1458474.8 1458474.8 1458474.8 $n [1] 3 3 5 5 5 5 5 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 602353.9 602353.9 398356.5 833372.8 985590.5 910501.4 851150.1 [2,] 1201297.5 1201297.5 1205427.5 984681.2 1931359.0 2006448.1 1311861.9 [,8] [,9] [,10] [,11] [,12] [1,] 392597.3 434915.6 477234 519552.3 573055.1 [2,] 1311120.4 1268802.1 1226484 1184165.4 1153031.6 $out [1] 1458475 $group [1] 4 $names [1] "2007" "2008" "2009" "2010" "2011" "2012" "2013" "2014" "2015" "2016" [11] "2017" "2018" Warning message: In bxp(list(stats = c(801892, 851858.855, 901825.71, 1180150.23, : 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/2l3c51398631926.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/33c6q1398631926.tab") > > try(system("convert tmp/12vjo1398631926.ps tmp/12vjo1398631926.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.255 0.232 1.469