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(6.3 + ,2.0 + ,4.5 + ,1.000 + ,6.600 + ,42.0 + ,3 + ,1 + ,3 + ,9.1 + ,0.7 + ,27.0 + ,10.550 + ,179.500 + ,180.0 + ,4 + ,4 + ,4 + ,15.8 + ,3.9 + ,19.0 + ,0.023 + ,0.300 + ,35.0 + ,1 + ,1 + ,1 + ,5.2 + ,1.0 + ,30.4 + ,160.000 + ,169.000 + ,392.0 + ,4 + ,5 + ,4 + ,10.9 + ,3.6 + ,28.0 + ,3.300 + ,25.600 + ,63.0 + ,1 + ,2 + ,1 + ,8.3 + ,1.4 + ,50.0 + ,52.160 + ,440.000 + ,230.0 + ,1 + ,1 + ,1 + ,11.0 + ,1.5 + ,7.0 + ,0.425 + ,6.400 + ,112.0 + ,5 + ,4 + ,4 + ,3.2 + ,0.7 + ,30.0 + ,465.000 + ,423.000 + ,281.0 + ,5 + ,5 + ,5 + ,6.3 + ,2.1 + ,3.5 + ,0.075 + ,1.200 + ,42.0 + ,1 + ,1 + ,1 + ,6.6 + ,4.1 + ,6.0 + ,0.785 + ,3.500 + ,42.0 + ,2 + ,2 + ,2 + ,9.5 + ,1.2 + ,10.4 + ,0.200 + ,5.000 + ,120.0 + ,2 + ,2 + ,2 + ,3.3 + ,0.5 + ,20.0 + ,27.660 + ,115.000 + ,148.0 + ,5 + ,5 + ,5 + ,11.0 + ,3.4 + ,3.9 + ,0.120 + ,1.000 + ,16.0 + ,3 + ,1 + ,2 + ,4.7 + ,1.5 + ,41.0 + ,85.000 + ,325.000 + ,310.0 + ,1 + ,3 + ,1 + ,10.4 + ,3.4 + ,9.0 + ,0.101 + ,4.000 + ,28.0 + ,5 + ,1 + ,3 + ,7.4 + ,0.8 + ,7.6 + ,1.040 + ,5.500 + ,68.0 + ,5 + ,3 + ,4 + ,2.1 + ,0.8 + ,46.0 + ,521.000 + ,655.000 + ,336.0 + ,5 + ,5 + ,5 + ,7.7 + ,1.4 + ,2.6 + ,0.005 + ,0.140 + ,21.5 + ,5 + ,2 + ,4 + ,17.9 + ,2.0 + ,24.0 + ,0.010 + ,0.250 + ,50.0 + ,1 + ,1 + ,1 + ,11.9 + ,1.3 + ,3.2 + ,0.023 + ,0.400 + ,19.0 + ,4 + ,1 + ,3 + ,10.8 + ,2.0 + ,2.0 + ,0.048 + ,0.330 + ,30.0 + ,4 + ,1 + ,3 + ,13.8 + ,5.6 + ,5.0 + ,1.700 + ,6.300 + ,12.0 + ,2 + ,1 + ,1 + ,14.3 + ,3.1 + ,6.5 + ,3.500 + ,10.800 + ,120.0 + ,2 + ,1 + ,1 + ,15.2 + ,1.8 + ,12.0 + ,0.480 + ,15.500 + ,140.0 + ,2 + ,2 + ,2 + ,10.0 + ,0.9 + ,20.2 + ,10.000 + ,115.000 + ,170.0 + ,4 + ,4 + ,4 + ,11.9 + ,1.8 + ,13.0 + ,1.620 + ,11.400 + ,17.0 + ,2 + ,1 + ,2 + ,6.5 + ,1.9 + ,27.0 + ,192.000 + ,180.000 + ,115.0 + ,4 + ,4 + ,4 + ,7.5 + ,0.9 + ,18.0 + ,2.500 + ,12.100 + ,31.0 + ,5 + ,5 + ,5 + ,10.6 + ,2.6 + ,4.7 + ,0.280 + ,1.900 + ,21.0 + ,3 + ,1 + ,3 + ,7.4 + ,2.4 + ,9.8 + ,4.235 + ,50.400 + ,52.0 + ,1 + ,1 + ,1 + ,8.4 + ,1.2 + ,29.0 + ,6.800 + ,179.000 + ,164.0 + ,2 + ,3 + ,2 + ,5.7 + ,0.9 + ,7.0 + ,0.750 + ,12.300 + ,225.0 + ,2 + ,2 + ,2 + ,4.9 + ,0.5 + ,6.0 + ,3.600 + ,21.000 + ,225.0 + ,3 + ,2 + ,3 + ,3.2 + ,0.6 + ,20.0 + ,55.500 + ,175.000 + ,151.0 + ,5 + ,5 + ,5 + ,11.0 + ,2.3 + ,4.5 + ,0.900 + ,2.600 + ,60.0 + ,2 + ,1 + ,2 + ,4.9 + ,0.5 + ,7.5 + ,2.000 + ,12.300 + ,200.0 + ,3 + ,1 + ,3 + ,13.2 + ,2.6 + ,2.3 + ,0.104 + ,2.500 + ,46.0 + ,3 + ,2 + ,2 + ,9.7 + ,0.6 + ,24.0 + ,4.190 + ,58.000 + ,210.0 + ,4 + ,3 + ,4 + ,12.8 + ,6.6 + ,3.0 + ,3.500 + ,3.900 + ,14.0 + ,2 + ,1 + ,1) + ,dim=c(9 + ,39) + ,dimnames=list(c('SWS' + ,'PS' + ,'maxLifeSpan' + ,'bodyWeight' + ,'brainWeight' + ,'gestationTime' + ,'predation' + ,'sleepExposure' + ,'danger') + ,1:39)) > y <- array(NA,dim=c(9,39),dimnames=list(c('SWS','PS','maxLifeSpan','bodyWeight','brainWeight','gestationTime','predation','sleepExposure','danger'),1:39)) > 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/1jyfa1292247474.ps",horizontal=F,onefile=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] [,8] [,9] [1,] 2.1 0.5 2.00 0.005 0.14 12 1 1.0 1.0 [2,] 6.3 0.9 4.85 0.240 3.05 33 2 1.0 1.5 [3,] 9.1 1.5 9.80 1.700 11.40 68 3 2.0 3.0 [4,] 11.0 2.5 24.00 8.400 115.00 175 4 3.5 4.0 [5,] 17.9 4.1 50.00 10.550 180.00 336 5 5.0 5.0 $n [1] 39 39 39 39 39 39 39 39 39 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 7.910888 1.095196 4.955002 -0.3645003 -16.92363 32.07365 2.493995 [2,] 10.289112 1.904804 14.644998 3.7645003 39.72363 103.92635 3.506005 [,8] [,9] [1,] 1.367494 2.367494 [2,] 2.632506 3.632506 $out [1] 5.60 6.60 160.00 52.16 465.00 27.66 85.00 521.00 192.00 55.50 [11] 440.00 423.00 325.00 655.00 392.00 $group [1] 2 2 4 4 4 4 4 4 4 4 5 5 5 5 6 $names [1] "SWS" "PS" "maxLifeSpan" "bodyWeight" [5] "brainWeight" "gestationTime" "predation" "sleepExposure" [9] "danger" Warning message: In bxp(list(stats = c(2.1, 6.3, 9.1, 11, 17.9, 0.5, 0.9, 1.5, 2.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > 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/25hvy1292247474.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/3qzc41292247474.tab") > > try(system("convert tmp/1jyfa1292247474.ps tmp/1jyfa1292247474.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.414 0.170 0.955