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(88.83,89.01,88.21,87.78,87.93,88.11,88.2,88.12,88.38,87.65,88.24,87.83,87.75,87.88,87.61,88.05,87.77,87.79,88.34,88.48,88.75,87.95,89.09,88.73,89.24,89.77,89.84,90.97,91.53,92.2,92.27,92.42,92.07,91.73,92.1,91.68,92.63,93.02,92.66,93.23,93.79,93.92,94.04,94.23,94.37,94.29,94.38,94,94.11,93.98,93.42,93.3,93.32,93.75,93.82,94.06,94.09,93.64,93.9,93.18,93.54,93.55,93.8,93.39,93.27,93.58,93.47,93.75,93.3,92.65,92.96,92.84,93.29,93.57,93.54,94.38,93.98,94.48,94.63,95.45,95.59,94.76,95.66,95.03,96.45,97.15,97.5,98.54,99.54,100.33,100.28,101.81,101.91,101.92,102.68,101.9,102.14,102.3,102.06,102.4,102.99,102.99,102.83,103.01,102.6,102.18,102.6,101.44),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/1k9wg1444340645.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,] 87.610 [2,] 90.405 [3,] 93.545 [4,] 95.240 [5,] 102.400 $n [1] 108 $conf [,1] [1,] 92.80991 [2,] 94.28009 $out [1] 102.68 102.99 102.99 102.83 103.01 102.60 102.60 $group [1] 1 1 1 1 1 1 1 $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/26zr21444340645.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/30dws1444340645.tab") > > try(system("convert tmp/1k9wg1444340645.ps tmp/1k9wg1444340645.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.495 0.139 0.630