R version 3.0.1 (2013-05-16) -- "Good Sport" 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(196.09,192.64,189.19,182.29,252.11,248.66,196.09,161.18,164.62,164.62,168.08,175.35,154.27,133.16,115.88,115.88,182.29,189.19,136.61,77.14,108.60,108.60,133.16,147.34,143.89,108.60,126.26,119.33,178.80,164.62,108.60,66.75,105.15,115.88,126.26,140.07,112.05,87.87,98.25,101.70,192.64,192.64,140.07,133.16,154.27,143.89,171.90,206.82,213.75,164.62,150.79,136.61,231.38,238.31,220.65,238.31,234.83,206.82,238.31,273.23,287.40,245.21,217.20,238.31,329.25,357.26,350.36,364.16,360.71,325.80,385.28,399.45,420.19,357.26,332.70,360.71,427.46,486.94,472.76,472.76,479.70,455.47,518.44,518.44,507.71,448.20,458.93,465.86,511.50,570.98,528.79,549.90,532.24,521.88,602.47,584.81,560.25,525.34,560.25,577.91,598.99,627.00,598.99,616.28,595.20,591.75,679.23,686.51,658.50,609.37,651.22,668.85,689.96,721.42,689.96,714.52,703.80,665.40,745.98,745.98),dim=c(1,120),dimnames=list(c('Maanden'),1:120)) > y <- array(NA,dim=c(1,120),dimnames=list(c('Maanden'),1:120)) > 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 = 'Omzet (Euro) (x1000)' > xlab = 'Maanden' > main = 'Notched Boxplots Omzet UK Shipping' > 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/1tk4h1376321220.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,] 66.750 [2,] 157.725 [3,] 246.935 [4,] 523.610 [5,] 745.980 $n [1] 120 $conf [,1] [1,] 194.1621 [2,] 299.7079 $out numeric(0) $group numeric(0) $names [1] "Maanden" > 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/25yh61376321220.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/34be81376321220.tab") > > try(system("convert tmp/1tk4h1376321220.ps tmp/1tk4h1376321220.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.385 0.306 1.659