R version 2.5.1 (2007-06-27) Copyright (C) 2007 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(21 + ,6 + ,160 + ,110 + ,3.9 + ,2.62 + ,16.46 + ,21 + ,6 + ,160 + ,110 + ,3.9 + ,2.875 + ,17.02 + ,22.8 + ,4 + ,108 + ,93 + ,3.85 + ,2.32 + ,18.61 + ,21.4 + ,6 + ,258 + ,110 + ,3.08 + ,3.215 + ,19.44 + ,18.7 + ,8 + ,360 + ,175 + ,3.15 + ,3.44 + ,17.02 + ,18.1 + ,6 + ,225 + ,105 + ,2.76 + ,3.46 + ,20.22 + ,14.3 + ,8 + ,360 + ,245 + ,3.21 + ,3.57 + ,15.84 + ,24.4 + ,4 + ,146.7 + ,62 + ,3.69 + ,3.19 + ,20 + ,22.8 + ,4 + ,140.8 + ,95 + ,3.92 + ,3.15 + ,22.9 + ,19.2 + ,6 + ,167.6 + ,123 + ,3.92 + ,3.44 + ,18.3 + ,17.8 + ,6 + ,167.6 + ,123 + ,3.92 + ,3.44 + ,18.9 + ,16.4 + ,8 + ,275.8 + ,180 + ,3.07 + ,4.07 + ,17.4 + ,17.3 + ,8 + ,275.8 + ,180 + ,3.07 + ,3.73 + ,17.6 + ,15.2 + ,8 + ,275.8 + ,180 + ,3.07 + ,3.78 + ,18 + ,10.4 + ,8 + ,472 + ,205 + ,2.93 + ,5.25 + ,17.98 + ,10.4 + ,8 + ,460 + ,215 + ,3 + ,5.424 + ,17.82 + ,14.7 + ,8 + ,440 + ,230 + ,3.23 + ,5.345 + ,17.42 + ,32.4 + ,4 + ,78.7 + ,66 + ,4.08 + ,2.2 + ,19.47 + ,30.4 + ,4 + ,75.7 + ,52 + ,4.93 + ,1.615 + ,18.52 + ,33.9 + ,4 + ,71.1 + ,65 + ,4.22 + ,1.835 + ,19.9 + ,21.5 + ,4 + ,120.1 + ,97 + ,3.7 + ,2.465 + ,20.01 + ,15.5 + ,8 + ,318 + ,150 + ,2.76 + ,3.52 + ,16.87 + ,15.2 + ,8 + ,304 + ,150 + ,3.15 + ,3.435 + ,17.3 + ,13.3 + ,8 + ,350 + ,245 + ,3.73 + ,3.84 + ,15.41 + ,19.2 + ,8 + ,400 + ,175 + ,3.08 + ,3.845 + ,17.05 + ,27.3 + ,4 + ,79 + ,66 + ,4.08 + ,1.935 + ,18.9 + ,26 + ,4 + ,120.3 + ,91 + ,4.43 + ,2.14 + ,16.7 + ,30.4 + ,4 + ,95.1 + ,113 + ,3.77 + ,1.513 + ,16.9 + ,15.8 + ,8 + ,351 + ,264 + ,4.22 + ,3.17 + ,14.5 + ,19.7 + ,6 + ,145 + ,175 + ,3.62 + ,2.77 + ,15.5 + ,15 + ,8 + ,301 + ,335 + ,3.54 + ,3.57 + ,14.6 + ,21.4 + ,4 + ,121 + ,109 + ,4.11 + ,2.78 + ,18.6) + ,dim=c(7 + ,32) + ,dimnames=list(c('mpg' + ,'cyl' + ,'disp' + ,'hp' + ,'drat' + ,'wt' + ,'qsec ') + ,1:32)) > y <- array(NA,dim=c(7,32),dimnames=list(c('mpg','cyl','disp','hp','drat','wt','qsec '),1:32)) > 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: Wessa P., (2007), Notched Boxplots (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_notchedbox1.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/1q7xs1193407900.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] [,7] [1,] 10.40 4 71.10 52 2.760 1.5130 14.500 [2,] 15.35 4 120.65 96 3.080 2.5425 16.885 [3,] 19.20 6 196.30 123 3.695 3.3250 17.710 [4,] 22.80 8 334.00 180 3.920 3.6500 18.900 [5,] 33.90 8 472.00 264 4.930 5.2500 20.220 $n [1] 32 32 32 32 32 32 32 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 17.11916 4.882771 136.7098 99.5382 3.460382 3.015667 17.14720 [2,] 21.28084 7.117229 255.8902 146.4618 3.929618 3.634333 18.27280 $out [1] 335.000 5.424 5.345 22.900 $group [1] 4 6 6 7 $names [1] "mpg" "cyl" "disp" "hp" "drat" "wt" "qsec\r" Warning messages: 1: some notches went outside hinges ('box'): maybe set notch=FALSE in: bxp(list(stats = c(10.4, 15.35, 19.2, 22.8, 33.9, 4, 4, 6, 8, 2: font width unknown for character 0xd in: axis(side = 1, at = 1:7, labels = c("mpg", "cyl", "disp", "hp", 3: font width unknown for character 0xd in: axis(side = 1, at = 1:7, labels = c("mpg", "cyl", "disp", "hp", 4: font width unknown for character 0xd in: axis(side = 1, at = 1:7, labels = c("mpg", "cyl", "disp", "hp", > dev.off() null device 1 > 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/2dkre1193407900.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/3qeno1193407900.tab") > > system("convert tmp/1q7xs1193407900.ps tmp/1q7xs1193407900.png") > > > proc.time() user system elapsed 0.700 0.161 0.756