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(8378669.00,7557530.00,8656721.00,7729873.00,7067002.00,7222189.00,6758161.00,6745665.00,8203660.00,8799755.00,7995151.00,6844694.00,7400186.00,6146183.00,6793027.00,5815146.00,5993505.00,5838016.00,5926815.00,5642890.00,7120621.00,7781743.00,7638921.00,5886070.00,7358890.00,6981189.00,8423532.00,6819313.00,6727221.00,6923349.00,7578240.00,7228898.00,8988846.00,8404694.00,9601659.00,8213138.00,8434646.00,8466539.00,9106270.00,8438555.00,7723821.00,7538413.00,7199881.00,8168314.00,9045790.00,8544483.00,9020709.00,7932021.00,8435986.00,7920357.00,8333659.00,7415547.00,7770392.00,8188878.00,8092465.00,7188528.00,8152373.00,9025069.00,9233973.00,6916290.00,8171721.00,7012501.00,8779456.00,7308709.00,8084547.00,8255978.00,7658071.00,7371877.00,8780827.00,10116778.00,9567175.00,7455902.00),dim=c(1,72),dimnames=list(c('A'),1:72)) > y <- array(NA,dim=c(1,72),dimnames=list(c('A'),1:72)) > 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 = 'Aantal goederen' > xlab = 'variables' > main = 'Handelsbalans Europa (totaal) 2008-2013' > 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/1kr621412410362.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] [1,] 5642890 [2,] 7093812 [3,] 7750132 [4,] 8429089 [5,] 10116778 $n [1] 72 $conf [,1] [1,] 7501497 [2,] 7998768 $out numeric(0) $group numeric(0) $names [1] "A" > 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/226w51412410362.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/3zv7d1412410362.tab") > > try(system("convert tmp/1kr621412410362.ps tmp/1kr621412410362.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.578 0.095 0.674