R version 2.8.0 (2008-10-20) 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(101.3 + ,99.2 + ,99.9 + ,124.9 + ,102 + ,93.6 + ,98.6 + ,132 + ,109.2 + ,104.2 + ,107.2 + ,151.4 + ,88.6 + ,95.3 + ,95.7 + ,108.9 + ,94.3 + ,102.7 + ,93.7 + ,121.3 + ,98.3 + ,103.1 + ,106.7 + ,123.4 + ,86.4 + ,100 + ,86.7 + ,90.3 + ,80.6 + ,107.2 + ,95.3 + ,79.3 + ,104.1 + ,107 + ,99.3 + ,117.2 + ,108.2 + ,119 + ,101.8 + ,116.9 + ,93.4 + ,110.4 + ,96 + ,120.8 + ,71.9 + ,101.7 + ,91.7 + ,96.1 + ,94.1 + ,102.4 + ,95.3 + ,100.8 + ,94.9 + ,98.8 + ,96.6 + ,105.3 + ,96.4 + ,105.6 + ,107.2 + ,116.1 + ,91.1 + ,104.4 + ,108 + ,112.8 + ,84.4 + ,106.3 + ,98.4 + ,114.5 + ,86.4 + ,107.2 + ,103.1 + ,117.2 + ,88 + ,108.5 + ,81.1 + ,77.1 + ,75.1 + ,106.9 + ,96.6 + ,80.1 + ,109.7 + ,114.2 + ,103.7 + ,120.3 + ,103 + ,125.9 + ,106.6 + ,133.4 + ,82.1 + ,110.6 + ,97.6 + ,109.4 + ,68 + ,110.5 + ,87.6 + ,93.2 + ,96.4 + ,106.7 + ,99.4 + ,91.2 + ,94.3 + ,104.7 + ,98.5 + ,99.2 + ,90 + ,107.4 + ,105.2 + ,108.2 + ,88 + ,109.8 + ,104.6 + ,101.5 + ,76.1 + ,103.4 + ,97.5 + ,106.9 + ,82.5 + ,114.8 + ,108.9 + ,104.4 + ,81.4 + ,114.3 + ,86.8 + ,77.9 + ,66.5 + ,109.6 + ,88.9 + ,60 + ,97.2 + ,118.3 + ,110.3 + ,99.5 + ,94.1 + ,127.3 + ,114.8 + ,95 + ,80.7 + ,112.3 + ,94.6 + ,105.6 + ,70.5 + ,114.9 + ,92 + ,102.5 + ,87.8 + ,108.2 + ,93.8 + ,93.3 + ,89.5 + ,105.4 + ,93.8 + ,97.3 + ,99.6 + ,122.1 + ,107.6 + ,127 + ,84.2 + ,113.5 + ,101 + ,111.7 + ,75.1 + ,110 + ,95.4 + ,96.4 + ,92 + ,125.3 + ,96.5 + ,133 + ,80.8 + ,114.3 + ,89.2 + ,72.2 + ,73.1 + ,115.6 + ,87.1 + ,95.8 + ,99.8 + ,127.1 + ,110.5 + ,124.1 + ,90 + ,123 + ,110.8 + ,127.6 + ,83.1 + ,122.2 + ,104.2 + ,110.7 + ,72.4 + ,126.4 + ,88.9 + ,104.6 + ,78.8 + ,112.7 + ,89.8 + ,112.7 + ,87.3 + ,105.8 + ,90 + ,115.3 + ,91 + ,120.9 + ,93.9 + ,139.4 + ,80.1 + ,116.3 + ,91.3 + ,119 + ,73.6 + ,115.7 + ,87.8 + ,97.4 + ,86.4 + ,127.9 + ,99.7 + ,154 + ,74.5 + ,108.3 + ,73.5 + ,81.5 + ,71.2 + ,121.1 + ,79.2 + ,88.8 + ,92.4 + ,128.6 + ,96.9 + ,127.7 + ,81.5 + ,123.1 + ,95.2 + ,105.1 + ,85.3 + ,127.7 + ,95.6 + ,114.9 + ,69.9 + ,126.6 + ,89.7 + ,106.4 + ,84.2 + ,118.4 + ,92.8 + ,104.5 + ,90.7 + ,110 + ,88 + ,121.6 + ,100.3 + ,129.6 + ,101.1 + ,141.4 + ,79.4 + ,115.8 + ,92.7 + ,99 + ,84.8 + ,125.9 + ,95.8 + ,126.7 + ,92.9 + ,128.4 + ,103.8 + ,134.1 + ,81.6 + ,114 + ,81.8 + ,81.3 + ,76 + ,125.6 + ,87.1 + ,88.6 + ,98.7 + ,128.5 + ,105.9 + ,132.7 + ,89.1 + ,136.6 + ,108.1 + ,132.9 + ,88.7 + ,133.1 + ,102.6 + ,134.4 + ,67.1 + ,124.6 + ,93.7 + ,103.7) + ,dim=c(4 + ,72) + ,dimnames=list(c('textiel' + ,'voeding' + ,'metallurgie' + ,'transport') + ,1:72)) > y <- array(NA,dim=c(4,72),dimnames=list(c('textiel','voeding','metallurgie','transport'),1:72)) > 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/1lwwb1229555873.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,] 66.50 93.60 79.20 60.00 [2,] 80.35 106.80 91.50 96.85 [3,] 87.55 113.75 96.25 108.55 [4,] 94.20 123.05 103.40 122.50 [5,] 109.70 136.60 114.80 154.00 $n [1] 72 72 72 72 $conf [,1] [,2] [,3] [,4] [1,] 84.97106 110.7242 94.03416 103.7738 [2,] 90.12894 116.7758 98.46584 113.3262 $out [1] 73.5 $group [1] 3 $names [1] "textiel" "voeding" "metallurgie" "transport" > 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/2g58b1229555873.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/32zew1229555873.tab") > > system("convert tmp/1lwwb1229555873.ps tmp/1lwwb1229555873.png") > > > proc.time() user system elapsed 0.373 0.188 0.494