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(2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,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,330729.00,1008894.00,1571067.00,1677335.67,1081506.00,NA,NA,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,6),dimnames=list(c('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018'),1:6)) > y <- array(NA,dim=c(12,6),dimnames=list(c('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016','2017','2018'),1:6)) > 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/1sm971398281126.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,] 2007.0 801892.0 2009.0 2010.0 2011.0 2012.0 801892.0 [2,] 330729.0 801892.0 255850.0 801892.0 801892.0 801892.0 801892.0 [3,] 801892.0 901825.7 851858.9 905426.4 991665.9 901825.7 901825.7 [4,] 901825.7 1008894.0 1458474.8 1458474.8 1458474.8 1458474.8 1227833.0 [5,] 1458474.8 1008894.0 1571067.0 1677335.7 2183210.0 1942369.0 1458474.8 [,8] [,9] [,10] [,11] [,12] [1,] 2014.0 2015.0 609991.0 717126.0 801892.0 [2,] 395721.0 502856.0 609991.0 717126.0 801892.0 [3,] 801892.0 801892.0 801892.0 801892.0 824261.0 [4,] 901825.7 901825.7 901825.7 901825.7 901825.7 [5,] 1458474.8 1458474.8 901825.7 901825.7 901825.7 $n [1] 5 5 6 6 6 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 398356.5 755558.6 76127.05 481909.3 568148.8 437886 600856.9 [2,] 1205427.5 1048092.8 1627590.66 1328943.4 1415182.9 1365765 1202794.5 [,8] [,9] [,10] [,11] [,12] [1,] 444279.7 519981 595682.3 671383.7 753648.1 [2,] 1159504.3 1083803 1008101.7 932400.3 894873.9 $out [1] 2008 1458475 2013 2016 1458475 2017 1458475 2018 1458475 $group [1] 2 2 7 10 10 11 11 12 12 $names [1] "2007" "2008" "2009" "2010" "2011" "2012" "2013" "2014" "2015" "2016" [11] "2017" "2018" Warning message: In bxp(list(stats = c(2007, 330729, 801892, 901825.71, 1458474.75, : 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/2jf811398281126.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/30r4q1398281126.tab") > > try(system("convert tmp/1sm971398281126.ps tmp/1sm971398281126.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.232 0.222 1.407