R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) 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(9700,9737,9605,9429,9656,10112,9081,9035,8640,8739,9295,9266,9084,9133,9214,9552,9946,9820,9743,9487,9567,9687,9701,10097,8587,8700,8547,9019,9049,9115,9731,9627,9185,9672,10190,10411,9563,8947,9470,9206,9706,9678,9998,9283,9123,9069,9765,10408,9437,8829,9278,9788,9893,10153,10038,9947,10170,10312,9994,10368,9918,9628,9434,10105,10433,10581,9252,9318,9655,9863,10073,10597),dim=c(6,12),dimnames=list(c('2000-2001','2001-2002','2002-2003','2003-2004','2004-2005','2005-2006 '),1:12)) > y <- array(NA,dim=c(6,12),dimnames=list(c('2000-2001','2001-2002','2002-2003','2003-2004','2004-2005','2005-2006 '),1:12)) > 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' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Notched Boxplots (v1.0.6) 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 > # > z <- as.data.frame(t(y)) > postscript(file="/var/fisher/rcomp/tmp/1qvyn1355070208.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] [1,] 8587.0 8700.0 8547 8739.0 9295.0 9115.0 [2,] 9168.0 8991.0 9154 9137.5 9678.5 9749.0 [3,] 9631.5 9300.5 9356 9612.0 9829.0 10132.5 [4,] 9830.5 9627.5 9586 9825.5 10033.5 10409.5 [5,] 10038.0 9947.0 10170 10312.0 10433.0 10597.0 $n [1] 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 9329.329 9010.188 9158.962 9298.199 9667.082 9831.242 [2,] 9933.671 9590.812 9553.038 9925.801 9990.918 10433.758 $out [1] 9049 $group [1] 5 $names [1] "2000-2001" "2001-2002" "2002-2003" "2003-2004" "2004-2005" [6] "2005-2006\r" Warning messages: 1: In bxp(list(stats = c(8587, 9168, 9631.5, 9830.5, 10038, 8700, 8991, : some notches went outside hinges ('box'): maybe set notch=FALSE 2: In axis(side = 1, at = 1:6, labels = c("2000-2001", "2001-2002", : font width unknown for character 0xd 3: In axis(side = 1, at = 1:6, labels = c("2000-2001", "2001-2002", : font width unknown for character 0xd > dev.off() null device 1 > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/2imfu1355070208.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/fisher/rcomp/tmp/3knim1355070208.tab") > > try(system("convert tmp/1qvyn1355070208.ps tmp/1qvyn1355070208.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.852 0.268 1.100