R version 3.3.1 (2016-06-21) -- "Bug in Your Hair" Copyright (C) 2016 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(29054.5,28543.5,28032,27009.5,37356,36844.5,29054.5,23881.5,24392.5,24392.5,24904,25982,22859,19731,17169.5,17169.5,27009.5,28032,20242,11429.5,16091.5,16091.5,19731,21831.5,21320,16091.5,18708.5,17681,26493.5,24392.5,16091.5,9891,15580,17169.5,18708.5,20753.5,16602.5,13019,14558,15069,28543.5,28543.5,20753.5,19731,22859,21320,25471,30644,31671.5,24392.5,22342.5,20242,34283.5,35311,32694,35311,34794.5,30644,35311,40484,42584.5,36333.5,32182.5,35311,48785,52936,51913.5,53958,53447,48274,57086.5,59187,62259.5,52936,49296.5,53447,63337.5,72150,70049.5,70049.5,71077,67488,76817,76817,75227.5,66410,67999.5,69027,75789.5,84602,78350.5,81479,78862,77328,89269,86652,83012.5,77839.5,83012.5,85629.5,88752.5,92903,88752.5,91314,88190.5,87679.5,100642.5,101720.5,97570,90291.5,96492,99104,102232,106894,102232,105871.5,104282,98592.5,110533,110533),dim=c(1,120),dimnames=list(c('A'),1:120)) > y <- array(NA,dim=c(1,120),dimnames=list(c('A'),1:120)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par2 = 'no' > par1 = 'grey' > ylab = 'Omzet EUR' > xlab = 'Reeks' > main = 'Boxplot Stabilo kleurstiften' > par2 <- 'no' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.327 (Mon, 28 Dec 2015 11:07:50 +0000) > #Author: root > #To cite this work: Wessa P., (2015), Notched Boxplots (v1.0.7) 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 > # > if(par2=='yes') { + z <- na.omit(as.data.frame(t(y))) + } else { + z <- as.data.frame(t(y)) + } > postscript(file="/var/wessaorg/rcomp/tmp/15ppi1470779670.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,] 9891.00 [2,] 23370.25 [3,] 36589.00 [4,] 77583.75 [5,] 110533.00 $n [1] 120 $conf [,1] [1,] 28769.59 [2,] 44408.41 $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/2p2a01470779670.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/3b2w81470779670.tab") > > try(system("convert tmp/15ppi1470779670.ps tmp/15ppi1470779670.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.538 0.075 0.615