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/2007 + ,6 + ,28/02/2007 + ,1.5 + ,31/03/2007 + ,5.7 + ,30/04/2007 + ,16.7 + ,31/05/2007 + ,11.1 + ,30/06/2007 + ,6.7 + ,31/07/2007 + ,12 + ,31/08/2007 + ,11.2 + ,30/09/2007 + ,11.3 + ,31/10/2007 + ,15.7 + ,30/11/2007 + ,8.8 + ,31/12/2007 + ,4.7 + ,31/01/2008 + ,3.4 + ,29/02/2008 + ,-2.8 + ,31/03/2008 + ,3 + ,30/04/2008 + ,-6.7 + ,31/05/2008 + ,-10.4 + ,30/06/2008 + ,-8.7 + ,31/07/2008 + ,-14.7 + ,31/08/2008 + ,-21.8 + ,30/09/2008 + ,-26 + ,31/10/2008 + ,-28.4 + ,30/11/2008 + ,-26.7 + ,31/12/2008 + ,-26.2 + ,31/01/2009 + ,-32.7 + ,28/02/2009 + ,-32.8 + ,31/03/2009 + ,-37.1 + ,30/04/2009 + ,-36.3 + ,31/05/2009 + ,-32.2 + ,30/06/2009 + ,-36 + ,31/07/2009 + ,-30.6 + ,31/08/2009 + ,-23.6 + ,30/09/2009 + ,-16.3 + ,31/10/2009 + ,-32.4 + ,30/11/2009 + ,-25.8 + ,31/12/2009 + ,-23.1 + ,31/01/2010 + ,-17.4 + ,28/02/2010 + ,-10.5 + ,31/03/2010 + ,-7.8 + ,30/04/2010 + ,1.7 + ,31/05/2010 + ,4.6 + ,30/06/2010 + ,-6.4 + ,31/07/2010 + ,-0.1 + ,31/08/2010 + ,-3.3 + ,30/09/2010 + ,1.9 + ,31/10/2010 + ,2.5 + ,30/11/2010 + ,1.2 + ,31/12/2010 + ,1.6 + ,31/01/2011 + ,0.8 + ,28/02/2011 + ,4.9 + ,31/03/2011 + ,-2.2 + ,30/04/2011 + ,2.3 + ,31/05/2011 + ,-3.6 + ,30/06/2011 + ,-3.8 + ,31/07/2011 + ,-3.9 + ,31/08/2011 + ,-3.3 + ,30/09/2011 + ,-15.8 + ,31/10/2011 + ,-18.4 + ,30/11/2011 + ,-19.5 + ,31/12/2011 + ,-21.6 + ,31/01/2012 + ,-23 + ,29/02/2012 + ,-22.2 + ,31/03/2012 + ,-19.4 + ,30/04/2012 + ,-17.2 + ,31/05/2012 + ,-18.5 + ,30/06/2012 + ,-11.1 + ,31/07/2012 + ,-13.6 + ,31/08/2012 + ,-17.4 + ,30/09/2012 + ,-14.5 + ,31/10/2012 + ,-15.2 + ,30/11/2012 + ,-8.1 + ,31/12/2012 + ,-3.9 + ,31/01/2013 + ,-5.2 + ,28/02/2013 + ,-9.7 + ,31/03/2013 + ,-15.7 + ,30/04/2013 + ,-20.2 + ,31/05/2013 + ,-15 + ,30/06/2013 + ,-16.9 + ,31/07/2013 + ,-21.6 + ,31/08/2013 + ,-10.8 + ,30/09/2013 + ,-12.1 + ,31/10/2013 + ,-3 + ,30/11/2013 + ,-7.8 + ,31/12/2013 + ,-6.5) + ,dim=c(2 + ,84) + ,dimnames=list(c('V1' + ,'V2') + ,1:84)) > y <- array(NA,dim=c(2,84),dimnames=list(c('V1','V2'),1:84)) > 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 = 'Handel in textielartikelen' > 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/1d7eo1412538163.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 -37.10 [2,] 0.001600249 -19.85 [3,] 0.002345209 -10.05 [4,] 0.004435110 1.35 [5,] 0.007221116 16.70 $n [1] 84 84 $conf [,1] [,2] [1,] 0.001856501 -13.704713 [2,] 0.002833917 -6.395287 $out [1] 0.01544594 0.01543825 0.01543056 0.01542289 0.01541522 0.01540755 0.01539990 $group [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/2hf9g1412538163.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/3xvsi1412538163.tab") > > try(system("convert tmp/1d7eo1412538163.ps tmp/1d7eo1412538163.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.606 0.109 0.714