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(221102 + ,210354 + ,189561 + ,220892 + ,202205 + ,184439 + ,225537 + ,220425 + ,182985 + ,219334 + ,210038 + ,183828 + ,216126 + ,205201 + ,184036 + ,224573 + ,197441 + ,183214 + ,213991 + ,200021 + ,183464 + ,221865 + ,203165 + ,173718 + ,215382 + ,201699 + ,180210 + ,213962 + ,201003 + ,171252 + ,217009 + ,232308 + ,172705 + ,318110 + ,211412 + ,174006 + ,219662 + ,209661 + ,172043 + ,212650 + ,213587 + ,169445 + ,209307 + ,193611 + ,169449 + ,210541 + ,192543 + ,177073 + ,210609 + ,196040 + ,170799 + ,208910 + ,191407 + ,171648 + ,207541 + ,189726 + ,172220 + ,207699 + ,191272 + ,165795 + ,205005 + ,187924 + ,167466 + ,205747 + ,198213 + ,165528 + ,203644 + ,199352 + ,162851 + ,229937 + ,199289 + ,165864 + ,214446 + ,195475 + ,162094 + ,210194 + ,198045 + ,162385 + ,206535 + ,197615 + ,164293 + ,216524 + ,189015 + ,165983 + ,198243 + ,189668 + ,159680 + ,208274 + ,189120 + ,161739 + ,207493 + ,194168 + ,159302 + ,215525 + ,192304 + ,167795 + ,207562 + ,185913 + ,164242 + ,213355 + ,197599 + ,159743 + ,209048 + ,186085 + ,160887 + ,220497 + ,190566 + ,163844 + ,214563 + ,187054 + ,161172 + ,211571 + ,193222 + ,159330 + ,216385 + ,189856 + ,155570 + ,211496 + ,190608 + ,156749 + ,209683 + ,190588 + ,155012 + ,206304 + ,186773 + ,163419 + ,213925 + ,183510 + ,153630 + ,204829 + ,180106 + ,154535 + ,205729 + ,180150 + ,151543 + ,200296 + ,178412 + ,152955 + ,207960 + ,182353 + ,150166 + ,207729 + ,203805 + ,151416 + ,208327 + ,186054 + ,150332 + ,207794 + ,184290 + ,152196 + ,213700 + ,187483 + ,153422 + ,213136 + ,187111 + ,147435) + ,dim=c(3 + ,52) + ,dimnames=list(c('2010' + ,'2011' + ,'2012') + ,1:52)) > y <- array(NA,dim=c(3,52),dimnames=list(c('2010','2011','2012'),1:52)) > 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/fisher/rcomp/tmp/16liz1388695137.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] [1,] 198243.0 178412.0 147435.0 [2,] 207714.0 187703.5 158025.5 [3,] 211533.5 192882.5 164267.5 [4,] 216255.5 200512.0 172131.5 [5,] 225537.0 213587.0 189561.0 $n [1] 52 52 52 $conf [,1] [,2] [,3] [1,] 209662 190076.1 161176.8 [2,] 213405 195688.9 167358.2 $out [1] 318110 229937 220425 232308 $group [1] 1 1 2 2 $names [1] "2010" "2011" "2012" > dev.off() null device 1 > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/27z0u1388695137.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/fisher/rcomp/tmp/3j5an1388695137.tab") > > try(system("convert tmp/16liz1388695137.ps tmp/16liz1388695137.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.852 0.272 1.100