R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(27.72,26.90,25.86,26.81,26.31,27.10,27.00,27.40,27.27,28.29,30.01,31.41,31.91,31.60,31.84,33.05,32.06,33.10,32.23,31.36,31.09,30.77,31.20,31.47,31.73,32.17,31.47,30.97,30.81,30.72,28.24,28.09,29.11,29.00,28.76,28.75,28.45,29.34,26.84,23.70,23.15,21.71,20.88,20.04,21.09,21.92,20.72,20.72,21.01,21.80,21.60,20.38,21.20,19.87,19.05,20.01,19.15,19.43,19.44,19.40,19.15,19.34,19.10,19.08,18.05,17.72,18.58,18.96,18.98,18.81,19.43,20.93,20.71,22.00,21.52,21.87,23.29,22.59,22.86,20.79,20.28,20.62,20.32,21.66,21.99,22.27,21.83,21.94,20.91,20.40,20.22,19.64,19.75,19.51,19.52,19.48,19.88,18.97,19.00,19.32,19.50,23.22,22.56,21.94,21.11,21.21,21.18,21.25,21.17,20.47,19.99,19.21,20.07,19.86,22.36,22.17,23.56,22.92,23.10,24.32,23.99,25.94,26.15,26.36,27.32,28.00),dim=c(1,126),dimnames=list(c('Facebook'),1:126)) > y <- array(NA,dim=c(1,126),dimnames=list(c('Facebook'),1:126)) > 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' > z <- as.data.frame(t(y)) > postscript(file="/var/fisher/rcomp/tmp/1k1kn1356015949.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,] 17.72 [2,] 20.04 [3,] 21.93 [4,] 27.40 [5,] 33.10 $n [1] 126 $conf [,1] [1,] 20.89402 [2,] 22.96598 $out numeric(0) $group numeric(0) $names [1] "Facebook" > dev.off() null device 1 > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/28khi1356015949.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/fisher/rcomp/tmp/3wcfu1356015949.tab") > > try(system("convert tmp/1k1kn1356015949.ps tmp/1k1kn1356015949.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.908 0.306 1.191