R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(109.8 + ,99.5 + ,110.5 + ,55 + ,111.7 + ,99.8 + ,110.8 + ,48.7 + ,98.6 + ,99.8 + ,104.2 + ,70.3 + ,96.9 + ,101.3 + ,88.9 + ,94.8 + ,95.1 + ,102.7 + ,89.8 + ,58.5 + ,97 + ,103.3 + ,90 + ,62.4 + ,112.7 + ,102.5 + ,93.9 + ,56.7 + ,102.9 + ,101.5 + ,91.3 + ,65.1 + ,97.4 + ,101.4 + ,87.8 + ,114.4 + ,111.4 + ,101.1 + ,99.7 + ,50.7 + ,87.4 + ,100 + ,73.5 + ,44.5 + ,96.8 + ,104.6 + ,79.2 + ,72 + ,114.1 + ,103.7 + ,96.9 + ,61.2 + ,110.3 + ,103.7 + ,95.2 + ,68.4 + ,103.9 + ,103.7 + ,95.6 + ,78.7 + ,101.6 + ,103.1 + ,89.7 + ,64.1 + ,94.6 + ,102.2 + ,92.8 + ,64.6 + ,95.9 + ,102.4 + ,88 + ,71.9 + ,104.7 + ,105.9 + ,101.1 + ,71 + ,102.8 + ,105.4 + ,92.7 + ,76.4 + ,98.1 + ,104.8 + ,95.8 + ,117.3 + ,113.9 + ,105.8 + ,103.8 + ,66.1 + ,80.9 + ,105.9 + ,81.8 + ,57.3 + ,95.7 + ,109.9 + ,87.1 + ,75 + ,113.2 + ,110.3 + ,105.9 + ,63.8 + ,105.9 + ,110.4 + ,108.1 + ,62.2 + ,108.8 + ,110.4 + ,102.6 + ,75.4 + ,102.3 + ,110.6 + ,93.7 + ,58 + ,99 + ,110 + ,103.5 + ,62.1 + ,100.7 + ,111.1 + ,100.6 + ,99.2 + ,115.5 + ,113.6 + ,113.3 + ,70.7 + ,100.7 + ,113.6 + ,102.4 + ,73.3 + ,109.9 + ,112.1 + ,102.1 + ,111.2 + ,114.6 + ,111.4 + ,106.9 + ,68.9 + ,85.4 + ,112.8 + ,87.3 + ,57.6 + ,100.5 + ,111 + ,93.1 + ,72.9 + ,114.8 + ,107.9 + ,109.1 + ,75.9 + ,116.5 + ,107.1 + ,120.3 + ,79.4 + ,112.9 + ,108.5 + ,104.9 + ,96.9 + ,102 + ,106.3 + ,92.6 + ,75.2 + ,106 + ,105.9 + ,109.8 + ,60.3 + ,105.3 + ,107.1 + ,111.4 + ,88.9 + ,118.8 + ,108.7 + ,117.9 + ,90.5 + ,106.1 + ,112.9 + ,121.6 + ,79.9 + ,109.3 + ,117.4 + ,117.8 + ,116.3 + ,117.2 + ,121.1 + ,124.2 + ,95.2 + ,92.5 + ,123.6 + ,106.8 + ,81.5 + ,104.2 + ,119.2 + ,102.7 + ,89.1 + ,112.5 + ,115.5 + ,116.8 + ,76 + ,122.4 + ,110.7 + ,113.6 + ,100.5 + ,113.3 + ,108.3 + ,96.1 + ,83.9 + ,100 + ,108.2 + ,85 + ,75.1 + ,110.7 + ,104.7 + ,83.2 + ,69.5 + ,112.8 + ,103.5 + ,84.9 + ,95.1 + ,109.8 + ,100.7 + ,83 + ,90.1 + ,117.3 + ,100.3 + ,79.6 + ,78.4 + ,109.1 + ,98.6 + ,83.2 + ,113.8 + ,115.9 + ,99.8 + ,83.8 + ,73.6 + ,96 + ,101.6 + ,82.8 + ,56.5 + ,99.8 + ,105.2 + ,71.4 + ,97.7) + ,dim=c(4 + ,60) + ,dimnames=list(c('iprodtot' + ,'pmetal' + ,'metalprod' + ,'investmmetal ') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('iprodtot','pmetal','metalprod','investmmetal '),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/html/rcomp/tmp/1az231257691854.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,] 80.90 98.60 71.40 44.50 [2,] 98.80 102.45 87.90 63.10 [3,] 105.60 105.90 95.95 73.45 [4,] 112.75 110.50 106.85 89.00 [5,] 122.40 121.10 124.20 117.30 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 102.7545 104.2580 92.08463 68.16699 [2,] 108.4455 107.5420 99.81537 78.73301 $out [1] 123.6 $group [1] 2 $names [1] "iprodtot" "pmetal" "metalprod" "investmmetal\r\r" Warning messages: 1: In axis(side = 1, at = 1:4, labels = c("iprodtot", "pmetal", "metalprod", : font width unknown for character 0xd 2: In axis(side = 1, at = 1:4, labels = c("iprodtot", "pmetal", "metalprod", : font width unknown for character 0xd 3: In axis(side = 1, at = 1:4, labels = c("iprodtot", "pmetal", "metalprod", : font width unknown for character 0xd 4: In axis(side = 1, at = 1:4, labels = c("iprodtot", "pmetal", "metalprod", : font width unknown for character 0xd > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/html/rcomp/tmp/24yro1257691854.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/html/rcomp/tmp/3tzg51257691854.tab") > > system("convert tmp/1az231257691854.ps tmp/1az231257691854.png") > > > proc.time() user system elapsed 0.362 0.184 0.474