R version 2.8.1 (2008-12-22) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(108.01 + ,102.9 + ,128 + ,79.1 + ,101.21 + ,97.4 + ,123.5 + ,71.7 + ,119.93 + ,111.4 + ,124 + ,100 + ,94.76 + ,87.4 + ,127.4 + ,82.1 + ,95.26 + ,96.8 + ,127.6 + ,74.8 + ,117.96 + ,114.1 + ,128.4 + ,92.3 + ,115.86 + ,110.3 + ,131.4 + ,83.3 + ,111.44 + ,103.9 + ,135.1 + ,83.7 + ,108.16 + ,101.6 + ,134 + ,148 + ,108.77 + ,94.6 + ,144.5 + ,71.4 + ,109.45 + ,95.9 + ,147.3 + ,71.2 + ,124.83 + ,104.7 + ,150.9 + ,84.6 + ,115.31 + ,102.8 + ,148.7 + ,80.9 + ,109.49 + ,98.1 + ,141.4 + ,80.6 + ,124.24 + ,113.9 + ,138.9 + ,105.5 + ,92.85 + ,80.9 + ,139.8 + ,79.2 + ,98.42 + ,95.7 + ,145.6 + ,78.4 + ,120.88 + ,113.2 + ,147.9 + ,92.6 + ,111.72 + ,105.9 + ,148.5 + ,88.3 + ,116.1 + ,108.8 + ,151.1 + ,98.2 + ,109.37 + ,102.3 + ,157.5 + ,157.4 + ,111.65 + ,99 + ,167.5 + ,73.9 + ,114.29 + ,100.7 + ,172.3 + ,80.9 + ,133.68 + ,115.5 + ,173.5 + ,93 + ,114.27 + ,100.7 + ,187.5 + ,84.9 + ,126.49 + ,109.9 + ,205.5 + ,96.2 + ,131 + ,114.6 + ,195.1 + ,106.5 + ,104 + ,85.4 + ,204.5 + ,81.7 + ,108.88 + ,100.5 + ,204.5 + ,82.9 + ,128.48 + ,114.8 + ,201.7 + ,96 + ,132.44 + ,116.5 + ,207 + ,92.6 + ,128.04 + ,112.9 + ,206.6 + ,116.5 + ,116.35 + ,102 + ,210.6 + ,155 + ,120.93 + ,106 + ,211.1 + ,95.1 + ,118.59 + ,105.3 + ,215 + ,86.2 + ,133.1 + ,118.8 + ,223.9 + ,105 + ,121.05 + ,106.1 + ,238.2 + ,89.7 + ,127.62 + ,109.3 + ,238.9 + ,97.1 + ,135.44 + ,117.2 + ,229.6 + ,120.8 + ,114.88 + ,92.5 + ,232.2 + ,92.2 + ,114.34 + ,104.2 + ,222.1 + ,98.8 + ,128.85 + ,112.5 + ,221.6 + ,104.1 + ,138.9 + ,122.4 + ,227.3 + ,106.5 + ,129.44 + ,113.3 + ,221 + ,113.4 + ,114.96 + ,100 + ,213.6 + ,192.4 + ,127.98 + ,110.7 + ,243.4 + ,103.6 + ,127.03 + ,112.8 + ,253.8 + ,97.6 + ,128.75 + ,109.8 + ,265.3 + ,99.9 + ,137.91 + ,117.3 + ,268.2 + ,106.4 + ,128.37 + ,109.1 + ,268.5 + ,104.8 + ,135.9 + ,115.9 + ,266.9 + ,114.1 + ,122.19 + ,96 + ,268.4 + ,93 + ,113.08 + ,99.8 + ,250.8 + ,90.2 + ,136.2 + ,116.8 + ,231.2 + ,108.8 + ,138 + ,115.7 + ,192 + ,108.7 + ,115.24 + ,99.4 + ,171.4 + ,125.2 + ,110.95 + ,94.3 + ,160 + ,180.4 + ,99.23 + ,91 + ,148.1 + ,91.6 + ,102.39 + ,93.2 + ,144.8 + ,87.1 + ,112.67 + ,103.1 + ,147.2 + ,98.3) + ,dim=c(4 + ,60) + ,dimnames=list(c('iotot' + ,'iptot' + ,'gp' + ,'invi') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('iotot','iptot','gp','invi'),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' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > z <- as.data.frame(t(y)) > postscript(file="/var/www/rcomp/tmp/17x5z1257756828.ps",horizontal=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,] 92.850 80.90 123.50 71.20 [2,] 110.220 99.20 146.40 83.50 [3,] 116.225 105.00 189.75 94.05 [4,] 128.205 113.05 223.00 105.95 [5,] 138.900 122.40 268.50 125.20 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 112.5565 102.1749 174.1254 89.47071 [2,] 119.8935 107.8251 205.3746 98.62929 $out [1] 148.0 157.4 155.0 192.4 180.4 $group [1] 4 4 4 4 4 $names [1] "iotot" "iptot" "gp" "invi" > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/www/rcomp/tmp/22xkf1257756828.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/www/rcomp/tmp/3c1ym1257756828.tab") > > system("convert tmp/17x5z1257756828.ps tmp/17x5z1257756828.png") > > > proc.time() user system elapsed 0.380 0.320 0.672