R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(1440 + ,900 + ,1920 + ,1080 + ,1280 + ,800 + ,1280 + ,1024 + ,1280 + ,1024 + ,1366 + ,768 + ,1440 + ,900 + ,953 + ,762 + ,1280 + ,800 + ,1920 + ,1080 + ,1366 + ,768 + ,1366 + ,768 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,800 + ,1024 + ,600 + ,1366 + ,768 + ,1600 + ,900 + ,1024 + ,600 + ,1920 + ,1080 + ,1280 + ,800 + ,1280 + ,800 + ,1024 + ,600 + ,1024 + ,768 + ,1311 + ,737 + ,1280 + ,800 + ,1280 + ,800 + ,1440 + ,900 + ,1229 + ,737 + ,1280 + ,800 + ,1600 + ,900 + ,1280 + ,800 + ,1366 + ,768 + ,1152 + ,720 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,960 + ,1280 + ,800 + ,1280 + ,800 + ,1366 + ,768 + ,1680 + ,1050 + ,1280 + ,800 + ,1366 + ,768 + ,1280 + ,1024 + ,1280 + ,1024 + ,1366 + ,768 + ,1024 + ,768 + ,1680 + ,1050 + ,1366 + ,768 + ,1280 + ,1024 + ,1280 + ,1024 + ,1366 + ,768 + ,1280 + ,800 + ,1024 + ,768 + ,1280 + ,800 + ,1280 + ,1024 + ,1366 + ,768 + ,1440 + ,900 + ,1366 + ,768 + ,1280 + ,800 + ,1440 + ,900 + ,1920 + ,1080 + ,1366 + ,768 + ,1280 + ,800 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1680 + ,1050 + ,1280 + ,800 + ,1366 + ,768 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,800 + ,1366 + ,768 + ,1920 + ,1080 + ,1920 + ,1080 + ,1229 + ,691 + ,1280 + ,800 + ,1920 + ,1080 + ,1280 + ,800 + ,1024 + ,768 + ,1280 + ,800 + ,1024 + ,768 + ,1280 + ,1024 + ,1280 + ,1024 + ,1280 + ,800 + ,1680 + ,1050 + ,1360 + ,768 + ,1024 + ,768 + ,1920 + ,1080 + ,1366 + ,768 + ,1366 + ,768 + ,1280 + ,800 + ,1600 + ,900 + ,1024 + ,768 + ,1366 + ,768 + ,1280 + ,800 + ,1024 + ,600 + ,1280 + ,800 + ,1366 + ,768 + ,1440 + ,900 + ,1200 + ,1600 + ,1440 + ,900 + ,1680 + ,1050 + ,1280 + ,800 + ,1400 + ,1050 + ,1366 + ,768 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1440 + ,900 + ,1440 + ,900 + ,1920 + ,1080 + ,1920 + ,1080 + ,1366 + ,768 + ,1366 + ,768 + ,1517 + ,948 + ,1680 + ,945 + ,1280 + ,1024 + ,1280 + ,800 + ,1280 + ,1024 + ,1280 + ,1024 + ,1366 + ,768 + ,320 + ,480 + ,1920 + ,1080 + ,1280 + ,800 + ,1440 + ,900 + ,1366 + ,768 + ,1280 + ,800 + ,1366 + ,768 + ,1366 + ,768 + ,1280 + ,800 + ,1536 + ,864 + ,1280 + ,800 + ,1280 + ,800 + ,1680 + ,1050 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1360 + ,768 + ,1920 + ,1080 + ,1680 + ,1050 + ,1366 + ,768 + ,1280 + ,800 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1280 + ,1024 + ,1680 + ,1050 + ,320 + ,480 + ,1366 + ,768 + ,1280 + ,800 + ,1366 + ,768 + ,1024 + ,768 + ,1280 + ,1024 + ,1366 + ,768 + ,1280 + ,1024 + ,1366 + ,768 + ,1280 + ,800 + ,1117 + ,698 + ,1280 + ,800) + ,dim=c(2 + ,162) + ,dimnames=list(c('Breedte' + ,'Hoogte') + ,1:162)) > y <- array(NA,dim=c(2,162),dimnames=list(c('Breedte','Hoogte'),1:162)) > 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' > z <- as.data.frame(t(y)) > z <- z[z[,1]*z[,2]>800000 & z[,1]*z[,2]<1700000,] > postscript(file="/var/wessaorg/rcomp/tmp/1qkic1324156126.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] [1,] 1152 691 [2,] 1280 768 [3,] 1280 800 [4,] 1366 900 [5,] 1440 1050 $n [1] 125 125 $conf [,1] [,2] [1,] 1267.847 781.3458 [2,] 1292.153 818.6542 $out [1] 1600 1600 1600 1517 1680 1536 $group [1] 1 1 1 1 1 1 $names [1] "Breedte" "Hoogte" Warning message: In bxp(list(stats = c(1152, 1280, 1280, 1366, 1440, 691, 768, 800, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/257q81324156126.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/wessaorg/rcomp/tmp/3kl1i1324156126.tab") > > try(system("convert tmp/1qkic1324156126.ps tmp/1qkic1324156126.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.508 0.092 0.591