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(1280 + ,1024 + ,1024 + ,768 + ,1120 + ,700 + ,1024 + ,768 + ,1280 + ,800 + ,1280 + ,1024 + ,1280 + ,800 + ,1024 + ,768 + ,1280 + ,800 + ,1280 + ,1024 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,1024 + ,1688 + ,949 + ,1440 + ,900 + ,1600 + ,1200 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,768 + ,1176 + ,735 + ,1280 + ,800 + ,1503 + ,845 + ,1440 + ,900 + ,1366 + ,768 + ,1280 + ,768 + ,1024 + ,768 + ,1280 + ,800 + ,2560 + ,1440 + ,1280 + ,768 + ,1024 + ,768 + ,1280 + ,1024 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1440 + ,900 + ,1024 + ,768 + ,1440 + ,900 + ,1143 + ,857 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1366 + ,768 + ,1024 + ,768 + ,1408 + ,880 + ,1366 + ,768 + ,1176 + ,735 + ,1920 + ,1200 + ,1257 + ,785 + ,1280 + ,800 + ,1280 + ,800 + ,1440 + ,900 + ,1680 + ,1050 + ,1440 + ,900 + ,1024 + ,768 + ,1140 + ,641 + ,1280 + ,1024 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1152 + ,864 + ,1280 + ,1024 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1280 + ,1024 + ,1440 + ,900 + ,1280 + ,800 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1280 + ,1024 + ,1600 + ,900 + ,1024 + ,768 + ,1366 + ,768 + ,1280 + ,800 + ,1280 + ,800 + ,1440 + ,900 + ,1366 + ,768 + ,1280 + ,800 + ,1024 + ,768 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1280 + ,800 + ,1408 + ,880 + ,1280 + ,800 + ,1600 + ,900 + ,1600 + ,900 + ,1680 + ,1050 + ,1440 + ,900 + ,1440 + ,900 + ,917 + ,550 + ,1280 + ,800 + ,1760 + ,990 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,800 + ,1024 + ,768 + ,1366 + ,768 + ,1440 + ,900 + ,1280 + ,800 + ,1280 + ,1024 + ,1920 + ,1080 + ,1024 + ,768 + ,1024 + ,768 + ,1600 + ,900 + ,1117 + ,698 + ,1440 + ,900 + ,983 + ,737 + ,1024 + ,768 + ,1024 + ,640 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,800 + ,1440 + ,900 + ,1280 + ,800 + ,1024 + ,768 + ,1024 + ,768 + ,1152 + ,864 + ,1280 + ,768 + ,1024 + ,768 + ,1366 + ,768 + ,1680 + ,1050 + ,1680 + ,1050 + ,1280 + ,800 + ,1366 + ,768 + ,1024 + ,768 + ,1440 + ,900 + ,1024 + ,768 + ,1280 + ,800 + ,1280 + ,800 + ,1280 + ,800 + ,1024 + ,768 + ,1280 + ,800) + ,dim=c(2 + ,139) + ,dimnames=list(c('Width' + ,'Height') + ,1:139)) > y <- array(NA,dim=c(2,139),dimnames=list(c('Width','Height'),1:139)) > 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' > (x<-x[x<1680]) [[1]] [1] 1280 [[2]] [1] 1024 [[3]] [1] 1024 [[4]] [1] 768 [[5]] [1] 1120 [[6]] [1] 700 [[7]] [1] 1024 [[8]] [1] 768 [[9]] [1] 1280 [[10]] [1] 800 [[11]] [1] 1280 [[12]] [1] 1024 [[13]] [1] 1280 [[14]] [1] 800 [[15]] [1] 1024 [[16]] [1] 768 [[17]] [1] 1280 [[18]] [1] 800 [[19]] [1] 1280 [[20]] [1] 1024 [[21]] [1] 1280 [[22]] [1] 800 [[23]] [1] 1280 [[24]] [1] 800 [[25]] [1] 1280 [[26]] [1] 1024 [[27]] [1] 949 [[28]] [1] 1440 [[29]] [1] 900 [[30]] [1] 1600 [[31]] [1] 1200 [[32]] [1] 1280 [[33]] [1] 800 [[34]] [1] 1280 [[35]] [1] 800 [[36]] [1] 1280 [[37]] [1] 768 [[38]] [1] 1176 [[39]] [1] 735 [[40]] [1] 1280 [[41]] [1] 800 [[42]] [1] 1503 [[43]] [1] 845 [[44]] [1] 1440 [[45]] [1] 900 [[46]] [1] 1366 [[47]] [1] 768 [[48]] [1] 1280 [[49]] [1] 768 [[50]] [1] 1024 [[51]] [1] 768 [[52]] [1] 1280 [[53]] [1] 800 [[54]] [1] 1440 [[55]] [1] 1280 [[56]] [1] 768 [[57]] [1] 1024 [[58]] [1] 768 [[59]] [1] 1280 [[60]] [1] 1024 [[61]] [1] 1280 [[62]] [1] 800 [[63]] [1] 1440 [[64]] [1] 900 [[65]] [1] 1280 [[66]] [1] 800 [[67]] [1] 1440 [[68]] [1] 900 [[69]] [1] 1024 [[70]] [1] 768 [[71]] [1] 1440 [[72]] [1] 900 [[73]] [1] 1143 [[74]] [1] 857 [[75]] [1] 1280 [[76]] [1] 800 [[77]] [1] 1440 [[78]] [1] 900 [[79]] [1] 1280 [[80]] [1] 800 [[81]] [1] 1366 [[82]] [1] 768 [[83]] [1] 1024 [[84]] [1] 768 [[85]] [1] 1408 [[86]] [1] 880 [[87]] [1] 1366 [[88]] [1] 768 [[89]] [1] 1176 [[90]] [1] 735 [[91]] [1] 1200 [[92]] [1] 1257 [[93]] [1] 785 [[94]] [1] 1280 [[95]] [1] 800 [[96]] [1] 1280 [[97]] [1] 800 [[98]] [1] 1440 [[99]] [1] 900 [[100]] [1] 1050 [[101]] [1] 1440 [[102]] [1] 900 [[103]] [1] 1024 [[104]] [1] 768 [[105]] [1] 1140 [[106]] [1] 641 [[107]] [1] 1280 [[108]] [1] 1024 [[109]] [1] 1280 [[110]] [1] 800 [[111]] [1] 1280 [[112]] [1] 800 [[113]] [1] 1280 [[114]] [1] 800 [[115]] [1] 1280 [[116]] [1] 800 [[117]] [1] 1440 [[118]] [1] 900 [[119]] [1] 1280 [[120]] [1] 800 [[121]] [1] 1152 [[122]] [1] 864 [[123]] [1] 1280 [[124]] [1] 1024 [[125]] [1] 1280 [[126]] [1] 800 [[127]] [1] 1440 [[128]] [1] 900 [[129]] [1] 1280 [[130]] [1] 800 [[131]] [1] 1280 [[132]] [1] 1024 [[133]] [1] 1440 [[134]] [1] 900 [[135]] [1] 1280 [[136]] [1] 800 [[137]] [1] 1280 [[138]] [1] 800 [[139]] [1] 1440 [[140]] [1] 900 [[141]] [1] 1280 [[142]] [1] 800 [[143]] [1] 1280 [[144]] [1] 1024 [[145]] [1] 1600 [[146]] [1] 900 [[147]] [1] 1024 [[148]] [1] 768 [[149]] [1] 1366 [[150]] [1] 768 [[151]] [1] 1280 [[152]] [1] 800 [[153]] [1] 1280 [[154]] [1] 800 [[155]] [1] 1440 [[156]] [1] 900 [[157]] [1] 1366 [[158]] [1] 768 [[159]] [1] 1280 [[160]] [1] 800 [[161]] [1] 1024 [[162]] [1] 768 [[163]] [1] 1280 [[164]] [1] 800 [[165]] [1] 1440 [[166]] [1] 900 [[167]] [1] 1280 [[168]] [1] 800 [[169]] [1] 1280 [[170]] [1] 800 [[171]] [1] 1408 [[172]] [1] 880 [[173]] [1] 1280 [[174]] [1] 800 [[175]] [1] 1600 [[176]] [1] 900 [[177]] [1] 1600 [[178]] [1] 900 [[179]] [1] 1050 [[180]] [1] 1440 [[181]] [1] 900 [[182]] [1] 1440 [[183]] [1] 900 [[184]] [1] 917 [[185]] [1] 550 [[186]] [1] 1280 [[187]] [1] 800 [[188]] [1] 990 [[189]] [1] 1280 [[190]] [1] 800 [[191]] [1] 1280 [[192]] [1] 800 [[193]] [1] 1280 [[194]] [1] 800 [[195]] [1] 1024 [[196]] [1] 768 [[197]] [1] 1366 [[198]] [1] 768 [[199]] [1] 1440 [[200]] [1] 900 [[201]] [1] 1280 [[202]] [1] 800 [[203]] [1] 1280 [[204]] [1] 1024 [[205]] [1] 1080 [[206]] [1] 1024 [[207]] [1] 768 [[208]] [1] 1024 [[209]] [1] 768 [[210]] [1] 1600 [[211]] [1] 900 [[212]] [1] 1117 [[213]] [1] 698 [[214]] [1] 1440 [[215]] [1] 900 [[216]] [1] 983 [[217]] [1] 737 [[218]] [1] 1024 [[219]] [1] 768 [[220]] [1] 1024 [[221]] [1] 640 [[222]] [1] 1280 [[223]] [1] 800 [[224]] [1] 1440 [[225]] [1] 900 [[226]] [1] 1280 [[227]] [1] 800 [[228]] [1] 1280 [[229]] [1] 800 [[230]] [1] 1280 [[231]] [1] 800 [[232]] [1] 1440 [[233]] [1] 900 [[234]] [1] 1280 [[235]] [1] 800 [[236]] [1] 1024 [[237]] [1] 768 [[238]] [1] 1024 [[239]] [1] 768 [[240]] [1] 1152 [[241]] [1] 864 [[242]] [1] 1280 [[243]] [1] 768 [[244]] [1] 1024 [[245]] [1] 768 [[246]] [1] 1366 [[247]] [1] 768 [[248]] [1] 1050 [[249]] [1] 1050 [[250]] [1] 1280 [[251]] [1] 800 [[252]] [1] 1366 [[253]] [1] 768 [[254]] [1] 1024 [[255]] [1] 768 [[256]] [1] 1440 [[257]] [1] 900 [[258]] [1] 1024 [[259]] [1] 768 [[260]] [1] 1280 [[261]] [1] 800 [[262]] [1] 1280 [[263]] [1] 800 [[264]] [1] 1280 [[265]] [1] 800 [[266]] [1] 1024 [[267]] [1] 768 [[268]] [1] 1280 [[269]] [1] 800 > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1u76a1317741721.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,] 1117 640 [2,] 1280 768 [3,] 1280 800 [4,] 1440 900 [5,] 1680 1080 $n [1] 139 139 $conf [,1] [,2] [1,] 1258.558 782.3102 [2,] 1301.442 817.6898 $out [1] 1024 1024 1024 1688 1024 2560 1024 1024 1024 1920 1024 1024 1024 917 1760 [16] 1024 1920 1024 1024 983 1024 1024 1024 1024 1024 1024 1024 1024 1200 1440 [31] 1200 550 $group [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 $names [1] "Width" "Height" Warning message: In bxp(list(stats = c(1117, 1280, 1280, 1440, 1680, 640, 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/24bd01317741721.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/3qlyz1317741721.tab") > > try(system("convert tmp/1u76a1317741721.ps tmp/1u76a1317741721.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.477 0.087 0.564