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(4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,7 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,7 + ,'SMK' + ,'mild' + ,1 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,7 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,6 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,6 + ,'NS' + ,'hot' + ,6 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,5 + ,'NS' + ,'hot' + ,11 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,3 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild' + ,6 + ,'NS' + ,'mild' + ,1 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,6 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild') + ,dim=c(3 + ,80) + ,dimnames=list(c('rate' + ,'status' + ,'curry') + ,1:80)) > y <- array(NA,dim=c(3,80),dimnames=list(c('rate','status','curry'),1:80)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } There were 50 or more warnings (use warnings() to see the first 50) > 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/fisher/rcomp/tmp/1t8kj1352753749.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] [,2] [,3] [1,] 1.0 NA NA [2,] 3.0 NA NA [3,] 4.0 NA NA [4,] 6.5 NA NA [5,] 11.0 NA NA $n [1] 80 0 0 $conf [,1] [,2] [,3] [1,] 3.381727 NA NA [2,] 4.618273 NA NA $out numeric(0) $group numeric(0) $names [1] "rate" "status" "curry" > 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/28hxl1352753749.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/3hth51352753749.tab") > > try(system("convert tmp/1t8kj1352753749.ps tmp/1t8kj1352753749.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.869 0.201 1.051