R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-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(1069108 + ,1059362 + ,1049495 + ,1029082 + ,1231089 + ,1220388 + ,1069108 + ,968521 + ,978233 + ,978233 + ,989056 + ,1008514 + ,1069108 + ,1049495 + ,1079775 + ,1129547 + ,1412683 + ,1412683 + ,1352244 + ,1291650 + ,1341422 + ,1401983 + ,1412683 + ,1442964 + ,1533833 + ,1473244 + ,1473244 + ,1564114 + ,1816014 + ,1836427 + ,1785734 + ,1664578 + ,1755420 + ,1755420 + ,1765165 + ,1816014 + ,1856040 + ,1876453 + ,1876453 + ,1937014 + ,2169452 + ,2229890 + ,2239603 + ,2088322 + ,2169452 + ,2139171 + ,2078582 + ,2209478 + ,2239603 + ,2188909 + ,2199610 + ,2269916 + ,2532640 + ,2663352 + ,2663352 + ,2602913 + ,2693660 + ,2602913 + ,2552092 + ,2744509 + ,2774634 + ,2703378 + ,2884967 + ,2956228 + ,3168103 + ,3308711 + ,3289258 + ,3278430 + ,3359559 + ,3349692 + ,3228692 + ,3410253 + ,3470847 + ,3410253 + ,3662154 + ,3783309 + ,4065362 + ,4176650 + ,4146492 + ,4085897 + ,4136624 + ,4197185 + ,3995056 + ,4156204 + ,4257779 + ,4216798 + ,4479366 + ,4570080 + ,4953837 + ,5024138 + ,4933418 + ,4984117 + ,5014398 + ,5044678 + ,4852261 + ,5033856 + ,5134437 + ,5033856 + ,5326854 + ,5417607 + ,5811037 + ,5871631 + ,5891089 + ,5992631 + ,5992631 + ,6032657 + ,5851063 + ,5941938 + ,6002377 + ,5891089 + ,6214246 + ,6274812 + ,6678021 + ,6749283 + ,6849864 + ,6940739 + ,6950451 + ,6961152 + ,6779563 + ,6961152) + ,dim=c(1 + ,120) + ,dimnames=list(c('V1') + ,1:120)) > y <- array(NA,dim=c(1,120),dimnames=list(c('V1'),1:120)) > 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/wessaorg/rcomp/tmp/1s3341404753150.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] [1,] 968521 [2,] 1755420 [3,] 2723944 [4,] 4943628 [5,] 6961152 $n [1] 120 $conf [,1] [1,] 2264097 [2,] 3183790 $out numeric(0) $group numeric(0) $names [1] "V1" > 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/2gkb11404753150.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/3ddjp1404753150.tab") > > try(system("convert tmp/1s3341404753150.ps tmp/1s3341404753150.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.579 0.085 0.667