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,40755.00,90015.01,63145.51,48010.27,69472.02,81874.32,89738.09,97601.87,105465.64,113329.42,115973.43,115973.43,115973.43,115973.43,115973.43,115973.43,115973.43,115973.43,115973.43,115973.43,115973.43,115973.43,94225.00,94225.00,94225.00,94225.00,94225.00,94225.00,94225.00,94225.00,94225.00,94225.00,94225.00,94225.00,NA,NA,166385.67,129763.67,118948.67,74685.67,91609.33,NA,NA,NA,NA,NA,103349.60,103349.60,103349.60,103349.60,103349.60,103349.60,103349.60,103349.60,103349.60,103349.60,103349.60,103349.60),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' > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1ycbi1398631816.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=F,col=par1)) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 94225.0 94225.0 94225.0 90015.01 63145.51 48010.27 91609.33 [2,] 98787.3 98787.3 94225.0 94225.00 94225.00 74685.67 91609.33 [3,] 103349.6 103349.6 103349.6 103349.60 103349.60 94225.00 94225.00 [4,] 109661.5 109661.5 115973.4 115973.43 115973.43 103349.60 103349.60 [5,] 115973.4 115973.4 115973.4 129763.67 118948.67 115973.43 115973.43 [,8] [,9] [,10] [,11] [,12] [1,] 81874.32 89738.09 94225.00 94225.0 94225.0 [2,] 88049.66 91981.54 95913.43 98787.3 98787.3 [3,] 98787.30 98787.30 100475.74 104407.6 108339.5 [4,] 109661.51 109661.51 109661.51 110719.5 114651.4 [5,] 115973.43 115973.43 115973.43 115973.4 115973.4 $n [1] 3 3 5 5 5 5 5 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 93430.0 93430.0 87982.21 87982.21 87982.21 73971.14 85929.35 [2,] 113269.2 113269.2 118716.99 118716.99 118716.99 114478.86 102520.65 [,8] [,9] [,10] [,11] [,12] [1,] 81713.93 84820.12 89614.75 94981.15 95806.85 [2,] 115860.67 112754.48 111336.72 113834.09 120872.17 $out [1] 40755.00 166385.67 69472.02 $group [1] 3 3 7 $names [1] "2007" "2008" "2009" "2010" "2011" "2012" "2013" "2014" "2015" "2016" [11] "2017" "2018" > 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/2jx8z1398631816.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/3bgqu1398631816.tab") > > try(system("convert tmp/1ycbi1398631816.ps tmp/1ycbi1398631816.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.142 0.199 1.332