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(100,100,100,100,103,96,97,99,103,106,113,99,103,118,127,99,100,102,106,97,100,110,77,96,100,106,165,96,99,113,142,96,98,133,162,95,97,126,147,94,96,147,124,94,96,143,150,93,105,106,100,92,106,127,104,92,106,133,109,89,103,121,110,88,100,115,103,87,101,146,59,86,100,146,177,84,99,129,164,84,98,156,192,83,97,125,151,82,97,137,149,81,97,142,132,81,104,118,101,80,105,121,96,81,104,128,101,80,99,135,117,81,95,106,97,81,94,118,52,80,94,121,173,79,92,108,147,78,90,130,170,78,89,107,144,77,86,105,139,77,84,130,143,76,94,110,113,77,95,117,104,77,91,97,113,76,89,141,138,75,86,108,110,77,87,98,71,76,87,113,175,75,86,123,167,75,83,112,167,75,83,116,177,75,79,105,143,75,80,122,149,73,89,100,112,73,90,97,99,73,87,112,114,73,85,102,125,74,85,104,86,76,87,120,64,78,89,80,141,79,90,91,134,82,90,99,154,84,90,105,145,85,88,97,114,90,90,109,126,92,99,103,106,93),dim=c(4,61),dimnames=list(c('Werkz','Bouwverg','persauto','hypkred'),1:61)) > y <- array(NA,dim=c(4,61),dimnames=list(c('Werkz','Bouwverg','persauto','hypkred'),1:61)) > 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/1dyd91261240228.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,] 79 80 52 73 [2,] 89 105 104 77 [3,] 95 113 125 81 [4,] 100 127 149 92 [5,] 106 156 192 100 $n [1] 61 61 61 61 $conf [,1] [,2] [,3] [,4] [1,] 92.77472 108.5494 115.8966 77.96553 [2,] 97.22528 117.4506 134.1034 84.03447 $out numeric(0) $group numeric(0) $names [1] "Werkz" "Bouwverg" "persauto" "hypkred" > 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/24yju1261240228.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/3i9ga1261240228.tab") > > try(system("convert tmp/1dyd91261240228.ps tmp/1dyd91261240228.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.378 0.151 0.434