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(112.9 + ,145.9 + ,105.2 + ,131.9 + ,101.7 + ,118.8 + ,85.4 + ,108.2 + ,87.7 + ,105.9 + ,84.4 + ,94 + ,102.7 + ,134.9 + ,98.8 + ,109.8 + ,102.6 + ,111.6 + ,87.3 + ,105.3 + ,107.2 + ,120.7 + ,99.4 + ,107.7 + ,113.5 + ,119.2 + ,93.4 + ,120.5 + ,92.1 + ,100.3 + ,79 + ,73.7 + ,85.1 + ,96.8 + ,78.6 + ,57.2 + ,117.5 + ,132.6 + ,97.3 + ,105.7 + ,95.1 + ,109.4 + ,77.5 + ,86.2 + ,102.7 + ,106.9 + ,81.1 + ,86 + ,109.2 + ,121.3 + ,96 + ,103 + ,87.2 + ,105.4 + ,78.6 + ,78.1 + ,80.8 + ,91.3 + ,71.9 + ,71.1 + ,91.7 + ,125.5 + ,88.7 + ,85.5 + ,103.6 + ,118.5 + ,81 + ,81.5 + ,114.3 + ,113.2 + ,86.3 + ,95.3 + ,112 + ,112.8 + ,95.5 + ,98.2 + ,83.9 + ,83.6 + ,69.7 + ,61.4 + ,90 + ,92.9 + ,65.3 + ,63.6 + ,109.3 + ,126.6 + ,87.2 + ,95.1 + ,96 + ,104 + ,71.5 + ,62.8 + ,102.1 + ,116.4 + ,73.6 + ,79.6 + ,104.4 + ,133.3 + ,86.3 + ,89.1 + ,107.7 + ,116 + ,66.4 + ,83.2 + ,102.1 + ,117 + ,66.5 + ,71.7 + ,114.1 + ,150.5 + ,81.8 + ,84.1 + ,127.3 + ,128.3 + ,81.1 + ,93.4 + ,149.4 + ,160.2 + ,99 + ,127.7 + ,152 + ,152.8 + ,109 + ,128 + ,119.6 + ,120.9 + ,81.6 + ,87 + ,117.2 + ,144.7 + ,84.7 + ,100 + ,149 + ,165.7 + ,100.6 + ,129.2 + ,132.3 + ,154.8 + ,93.9 + ,117.6 + ,149.2 + ,167.3 + ,99.5 + ,129.1 + ,134.9 + ,163.4 + ,100.3 + ,120.7 + ,139.3 + ,153.4 + ,95.4 + ,119.1 + ,125.8 + ,142.6 + ,90 + ,117.9 + ,122.7 + ,158 + ,89.3 + ,114.8 + ,137.1 + ,154.6 + ,101.1 + ,128.2 + ,156.6 + ,154.4 + ,110.2 + ,134.9 + ,140.4 + ,152.6 + ,96.4 + ,128.8 + ,119 + ,121 + ,81.7 + ,92.2 + ,105 + ,143.3 + ,80 + ,97.7 + ,151.1 + ,166.5 + ,101.6 + ,142 + ,133.2 + ,146 + ,90.4 + ,113.9 + ,126.1 + ,139.8 + ,87.8 + ,108.5 + ,137.9 + ,161.3 + ,97.4 + ,132.9 + ,120.4 + ,132.4 + ,83.5 + ,115 + ,120.5 + ,137.4 + ,89.5 + ,119.7 + ,121.3 + ,151 + ,99 + ,103.7 + ,133.3 + ,135 + ,98.5 + ,134.4 + ,135.9 + ,137.7 + ,101.4 + ,132.9 + ,128.9 + ,128.4 + ,101.6 + ,132.7 + ,104.4 + ,107.1 + ,78.6 + ,88.6 + ,89 + ,112.4 + ,73.1 + ,81.3 + ,131.5 + ,147.3 + ,106.3 + ,134.1 + ,121.3 + ,134.2 + ,93.4 + ,126.7 + ,107.6 + ,120.7 + ,88.2 + ,99) + ,dim=c(4 + ,60) + ,dimnames=list(c('ProMet' + ,'MaApWe' + ,'ElElAp' + ,'Transp') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('ProMet','MaApWe','ElElAp','Transp'),1:60)) > 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' > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1zaf81355222523.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] [,4] [1,] 80.80 83.6 65.30 57.2 [2,] 102.65 114.6 81.05 86.1 [3,] 114.20 130.4 88.45 104.5 [4,] 131.90 148.9 98.65 123.7 [5,] 156.60 167.3 110.20 142.0 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 108.2337 123.4036 84.86 96.83046 [2,] 120.1663 137.3964 92.04 112.16954 $out numeric(0) $group numeric(0) $names [1] "ProMet" "MaApWe" "ElElAp" "Transp" > 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/2jk2n1355222523.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/39f021355222523.tab") > > try(system("convert tmp/1zaf81355222523.ps tmp/1zaf81355222523.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.966 0.194 1.135