R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 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(31/01/2014 + ,-4 + ,31/01/2006 + ,-5 + ,28/02/2006 + ,-6 + ,31/03/2006 + ,-6 + ,30/04/2006 + ,-7 + ,31/05/2006 + ,-12 + ,30/06/2006 + ,-16 + ,31/07/2006 + ,-18 + ,31/08/2006 + ,-19 + ,30/09/2006 + ,-20 + ,31/10/2006 + ,-24 + ,30/11/2006 + ,-17 + ,31/12/2006 + ,-23 + ,31/01/2007 + ,-25 + ,28/02/2007 + ,-24 + ,31/03/2007 + ,-17 + ,30/04/2007 + ,-14 + ,31/05/2007 + ,-16 + ,30/06/2007 + ,-13 + ,31/07/2007 + ,-10 + ,31/08/2007 + ,-10 + ,30/09/2007 + ,-12 + ,31/10/2007 + ,-12 + ,30/11/2007 + ,-20 + ,31/12/2007 + ,-16 + ,31/01/2008 + ,-12 + ,29/02/2008 + ,-14 + ,31/03/2008 + ,-7 + ,30/04/2008 + ,-9 + ,31/05/2008 + ,-9 + ,30/06/2008 + ,-4 + ,31/07/2008 + ,-3 + ,31/08/2008 + ,1 + ,30/09/2008 + ,-1 + ,31/10/2008 + ,-2 + ,30/11/2008 + ,1 + ,31/12/2008 + ,-3 + ,31/01/2009 + ,-2 + ,28/02/2009 + ,0 + ,31/03/2009 + ,-2 + ,30/04/2009 + ,-4 + ,31/05/2009 + ,-4 + ,30/06/2009 + ,-7 + ,31/07/2009 + ,-9 + ,31/08/2009 + ,-13 + ,30/09/2009 + ,-8 + ,31/10/2009 + ,-13 + ,30/11/2009 + ,-15 + ,31/12/2009 + ,-15 + ,31/01/2010 + ,-15 + ,28/02/2010 + ,-10 + ,31/03/2010 + ,-12 + ,30/04/2010 + ,-11 + ,31/05/2010 + ,-11 + ,30/06/2010 + ,-17 + ,31/07/2010 + ,-18 + ,31/08/2010 + ,-19 + ,30/09/2010 + ,-22 + ,31/10/2010 + ,-24 + ,30/11/2010 + ,-24 + ,31/12/2010 + ,-20 + ,31/01/2011 + ,-25 + ,28/02/2011 + ,-22 + ,31/03/2011 + ,-17 + ,30/04/2011 + ,-9 + ,31/05/2011 + ,-11 + ,30/06/2011 + ,-13 + ,31/07/2011 + ,-11 + ,31/08/2011 + ,-9 + ,30/09/2011 + ,-7 + ,31/10/2011 + ,-3 + ,30/11/2011 + ,-3 + ,31/12/2011 + ,-6 + ,31/01/2012 + ,-4 + ,29/02/2012 + ,-8 + ,31/03/2012 + ,-1 + ,30/04/2012 + ,-2 + ,31/05/2012 + ,-2 + ,30/06/2012 + ,-1 + ,31/07/2012 + ,1 + ,31/08/2012 + ,2 + ,30/09/2012 + ,2 + ,31/10/2012 + ,-1 + ,30/11/2012 + ,1 + ,31/12/2012 + ,-1 + ,31/01/2013 + ,-8 + ,28/02/2013 + ,1 + ,31/03/2013 + ,2 + ,30/04/2013 + ,-2 + ,31/05/2013 + ,-2 + ,30/06/2013 + ,-2 + ,31/07/2013 + ,-2 + ,31/08/2013 + ,-6 + ,30/09/2013 + ,-4 + ,31/10/2013 + ,-5 + ,30/11/2013 + ,-2 + ,31/12/2013 + ,-1) + ,dim=c(2 + ,97) + ,dimnames=list(c('V1' + ,'V2') + ,1:97)) > y <- array(NA,dim=c(2,97),dimnames=list(c('V1','V2'),1:97)) > 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/12w9m1423764119.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] [1,] 0.001283325 -25 [2,] 0.001655903 -15 [3,] 0.002483855 -9 [4,] 0.005133300 -2 [5,] 0.007221116 2 $n [1] 97 97 $conf [,1] [,2] [1,] 0.001925995 -11.085521 [2,] 0.003041715 -6.914479 $out [1] 0.01539225 0.01545364 0.01544594 0.01543825 0.01543056 0.01542289 0.01541522 [8] 0.01540755 0.01539990 $group [1] 1 1 1 1 1 1 1 1 1 $names [1] "V1" "V2" > 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/2hps41423764119.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/3blhx1423764119.tab") > > try(system("convert tmp/12w9m1423764119.ps tmp/12w9m1423764119.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.672 0.102 0.775