R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 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(76.93,79.32,79.35,80.94,80.13,81.38,81.1,81.53,80.46,79.71,78.66,79.96,80.64,81.8,81.06,81.67,79.72,81.28,81.36,85.26,90,93,95.62,102.15,105.73,109.79,113.77,114.3,114.76,113.69,113.88,114.47,112.57,114.43,112.7,113.48,113.05,112.22,111.44,111.67,111.91,111.7,104.26,101.13,98.55,97.06,96.22,95.15,94.54,94.29,93.98,93.76,94.16,93.83,93.97,94.19,94.14,94.24,94.27,94.21,93.45,95.84,98.59,97,96.45,96.48,96.1,95.49,95.85,95.85,98.52,101.77,101.2,102.85,102.98,102.87,100.48,97.59,97.55,99.06,100.43,102.93,104.22,105.26,105.44,106.97,105.82,104.4,102.03,100.17,98.01,96.49,95.63,95.4,94.97,94.68,95.87,94.99,94.65,94.35,94.1,94.21,95.2,95.55,95.68,95.27,95.3,95.93),dim=c(1,108),dimnames=list(c('Reeks'),1:108)) > y <- array(NA,dim=c(1,108),dimnames=list(c('Reeks'),1:108)) > 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 = 'Indexprijs in euro' > xlab = 'frequentie' > main = 'Consumptieprijs Pasta' > 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/1ujto1444376287.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,] 80.94 [2,] 94.04 [3,] 95.85 [4,] 102.90 [5,] 114.76 $n [1] 108 $conf [,1] [1,] 94.50296 [2,] 97.19704 $out [1] 76.93 79.32 79.35 80.13 80.46 79.71 78.66 79.96 80.64 79.72 $group [1] 1 1 1 1 1 1 1 1 1 1 $names [1] "Reeks" > 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/2qnz81444376287.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/3xvys1444376287.tab") > > try(system("convert tmp/1ujto1444376287.ps tmp/1ujto1444376287.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.522 0.072 0.599