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(1.5469,1.5501,1.5494,1.5475,1.5449,1.5391,1.5578,1.5528,1.5496,1.549,1.5449,1.5479,1.5494,1.558,1.5691,1.5748,1.5564,1.5601,1.5687,1.5775,1.5841,1.5898,1.5922,1.5969,1.6155,1.6212,1.6124,1.6375,1.6506,1.6543,1.6567,1.6383,1.6475,1.6706,1.6485,1.6592,1.6203,1.608,1.572,1.5964,1.6247,1.6139,1.6193,1.6212,1.5942,1.5194,1.5162,1.5393,1.4935,1.4904,1.5083,1.5147,1.5118,1.5148,1.5202,1.5236,1.5148,1.5138,1.5105,1.502,1.4765,1.4671,1.4482,1.4337,1.4181,1.3767,1.346,1.3413,1.3089,1.3452,1.3442,1.2811,1.2779,1.2974,1.2867,1.2977,1.2537,1.2092,1.1766,1.1203,1.2005,1.2295,1.2307,1.2276,1.2108,1.2071,1.2061,1.2023,1.2012,1.2011,1.2011,1.2011,1.2089,1.2098,1.2052,1.2091,1.2288,1.2298,1.2266,1.2199,1.2418,1.2322,1.2366,1.2338,1.2338,1.2316,1.2316,1.2245),dim=c(1,108),dimnames=list(c('V1'),1:108)) > y <- array(NA,dim=c(1,108),dimnames=list(c('V1'),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 = 'value' > xlab = 'variables' > main = 'Notched Boxplots' > 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/1y3on1432666086.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,] 1.12030 [2,] 1.23300 [3,] 1.51280 [4,] 1.57055 [5,] 1.67060 $n [1] 108 $conf [,1] [1,] 1.46148 [2,] 1.56412 $out numeric(0) $group numeric(0) $names [1] "V1" > 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/2thdv1432666086.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/3ct7b1432666086.tab") > > try(system("convert tmp/1y3on1432666086.ps tmp/1y3on1432666086.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.518 0.142 0.655