R version 2.11.1 (2010-05-31) Copyright (C) 2010 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(26 + ,19 + ,21 + ,18 + ,21 + ,11 + ,20 + ,25 + ,16 + ,17 + ,15 + ,4 + ,19 + ,17 + ,19 + ,19 + ,18 + ,10 + ,20 + ,22 + ,16 + ,20 + ,8 + ,13 + ,25 + ,21 + ,23 + ,17 + ,19 + ,11 + ,22 + ,26 + ,12 + ,25 + ,20 + ,24 + ,26 + ,20 + ,19 + ,26 + ,16 + ,5 + ,22 + ,14 + ,16 + ,19 + ,14 + ,5 + ,19 + ,23 + ,13 + ,16 + ,14 + ,13 + ,24 + ,20 + ,20 + ,19 + ,8 + ,9 + ,26 + ,22 + ,27 + ,25 + ,23 + ,17 + ,13 + ,15 + ,8 + ,15 + ,9 + ,12 + ,22 + ,20 + ,13 + ,12 + ,15 + ,7 + ,21 + ,22 + ,15 + ,21 + ,19 + ,16 + ,7 + ,20 + ,5 + ,15 + ,6 + ,14 + ,17 + ,28 + ,14 + ,28 + ,11 + ,24 + ,25 + ,25 + ,24 + ,26 + ,17 + ,18 + ,25 + ,26 + ,24 + ,25 + ,17 + ,12 + ,19 + ,17 + ,9 + ,12 + ,5 + ,9 + ,23 + ,23 + ,19 + ,15 + ,15 + ,8 + ,22 + ,13 + ,19 + ,14 + ,17 + ,10 + ,21 + ,24 + ,18 + ,22 + ,20 + ,19 + ,18 + ,14 + ,12 + ,21 + ,7 + ,4 + ,22 + ,22 + ,25 + ,23 + ,15 + ,19 + ,18 + ,23 + ,19 + ,25 + ,15 + ,11 + ,23 + ,22 + ,20 + ,22 + ,10 + ,11 + ,20 + ,24 + ,24 + ,24 + ,14 + ,24 + ,15 + ,21 + ,12 + ,20 + ,9 + ,17 + ,21 + ,23 + ,17 + ,22 + ,18 + ,18 + ,18 + ,22 + ,16 + ,16 + ,17 + ,12 + ,19 + ,21 + ,11 + ,22 + ,14 + ,16 + ,22 + ,26 + ,20 + ,24 + ,16 + ,23 + ,16 + ,15 + ,11 + ,16 + ,10 + ,7 + ,18 + ,25 + ,20 + ,27 + ,10 + ,10 + ,20 + ,17 + ,19 + ,20 + ,14 + ,17 + ,24 + ,25 + ,17 + ,27 + ,10 + ,21 + ,24 + ,27 + ,18 + ,24 + ,9 + ,19 + ,18 + ,25 + ,17 + ,19 + ,12 + ,13 + ,21 + ,19 + ,27 + ,16 + ,16 + ,12 + ,17 + ,26 + ,19 + ,26 + ,18 + ,22 + ,22 + ,20 + ,19 + ,22 + ,18 + ,5 + ,16 + ,20 + ,11 + ,21 + ,9 + ,14 + ,21 + ,18 + ,22 + ,14 + ,19 + ,12 + ,24 + ,18 + ,20 + ,12 + ,23 + ,12 + ,24 + ,19 + ,24 + ,22 + ,22 + ,6 + ,16 + ,23 + ,16 + ,20 + ,14 + ,17 + ,16 + ,17 + ,16 + ,18 + ,14 + ,15 + ,18 + ,23 + ,11 + ,23 + ,12 + ,17 + ,20 + ,23 + ,20 + ,23 + ,12 + ,22 + ,24 + ,11 + ,20 + ,12 + ,16 + ,9 + ,17 + ,18 + ,12 + ,16 + ,11 + ,13 + ,19 + ,24 + ,8 + ,23 + ,14 + ,20 + ,20 + ,16 + ,21 + ,18 + ,13 + ,12 + ,15 + ,24 + ,18 + ,23 + ,9 + ,20 + ,22 + ,24 + ,16 + ,15 + ,13 + ,18 + ,23 + ,21 + ,18 + ,17 + ,19 + ,13 + ,16 + ,25 + ,20 + ,22 + ,13 + ,15 + ,19 + ,22 + ,20 + ,20 + ,13 + ,18 + ,19 + ,21 + ,17 + ,20 + ,14 + ,18 + ,21 + ,24 + ,15 + ,20 + ,11 + ,12 + ,24 + ,24 + ,17 + ,22 + ,18 + ,16 + ,22 + ,21 + ,23 + ,18 + ,19 + ,16 + ,18 + ,18 + ,19 + ,17 + ,15 + ,13 + ,24 + ,NA + ,17 + ,NA + ,19 + ,NA + ,24 + ,NA + ,12 + ,NA + ,15 + ,NA + ,22 + ,NA + ,24 + ,NA + ,17 + ,NA + ,23 + ,NA + ,18 + ,NA + ,8 + ,NA + ,22 + ,NA + ,20 + ,NA + ,10 + ,NA + ,20 + ,NA + ,16 + ,NA + ,12 + ,NA + ,18 + ,NA + ,20 + ,NA + ,12 + ,NA + ,25 + ,NA + ,22 + ,NA + ,20 + ,NA + ,16 + ,NA + ,16 + ,NA + ,12 + ,NA + ,20 + ,NA + ,17 + ,NA + ,14 + ,NA + ,15 + ,NA + ,12 + ,NA + ,10 + ,NA + ,19 + ,NA + ,14 + ,NA + ,18 + ,NA + ,19 + ,NA + ,23 + ,NA + ,18 + ,NA + ,16 + ,NA + ,15 + ,NA + ,7 + ,NA + ,17 + ,NA + ,17 + ,NA + ,18 + ,NA + ,28 + ,NA + ,28 + ,NA + ,9 + ,NA + ,25 + ,NA + ,23 + ,NA + ,22 + ,NA + ,20 + ,NA + ,13 + ,NA + ,11 + ,NA + ,16 + ,NA + ,19 + ,NA + ,15 + ,NA + ,23 + ,NA + ,13 + ,NA + ,14 + ,NA + ,21 + ,NA + ,22 + ,NA + ,14 + ,NA + ,23 + ,NA + ,20 + ,NA + ,20 + ,NA + ,18 + ,NA + ,10 + ,NA + ,8 + ,NA + ,20 + ,NA + ,17 + ,NA + ,17 + ,NA + ,9 + ,NA + ,18 + ,NA + ,9 + ,NA + ,25 + ,NA + ,23 + ,NA + ,22 + ,NA + ,20 + ,NA + ,17 + ,NA + ,10 + ,NA + ,21 + ,NA + ,19 + ,NA + ,12 + ,NA + ,22 + ,NA + ,18 + ,NA + ,12 + ,NA + ,27 + ,NA + ,22 + ,NA + ,20 + ,NA + ,18 + ,NA + ,16 + ,NA + ,18 + ,NA + ,16 + ,NA + ,16 + ,NA + ,16 + ,NA + ,22 + ,NA + ,16 + ,NA + ,13 + ,NA + ,20 + ,NA + ,16 + ,NA + ,17 + ,NA + ,20 + ,NA + ,18 + ,NA + ,17 + ,NA) + ,dim=c(6 + ,98) + ,dimnames=list(c('MI1' + ,'VI1' + ,'MI2' + ,'VI2' + ,'MI3' + ,'VI3') + ,1:98)) > y <- array(NA,dim=c(6,98),dimnames=list(c('MI1','VI1','MI2','VI2','MI3','VI3'),1:98)) > 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/142pf1287220149.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] [,5] [,6] [1,] 13 13 10 12 5 4 [2,] 18 19 16 17 11 11 [3,] 20 22 18 20 14 13 [4,] 23 24 20 23 18 18 [5,] 28 28 25 28 23 24 $n [1] 98 63 98 63 98 63 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 19.20198 21.00469 17.36158 18.80563 12.88277 11.60657 [2,] 20.79802 22.99531 18.63842 21.19437 15.11723 14.39343 $out [1] 7 9 11 27 8 5 9 27 8 28 $group [1] 1 1 2 3 3 3 3 3 3 3 $names [1] "MI1" "VI1" "MI2" "VI2" "MI3" "VI3" > 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/20b551287220149.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/3tkmq1287220149.tab") > > try(system("convert tmp/142pf1287220149.ps tmp/142pf1287220149.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.610 0.290 0.857