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(5204472 + ,5185089 + ,5165433 + ,5124756 + ,5527158 + ,5505864 + ,5204472 + ,5004090 + ,5023473 + ,5023473 + ,5045040 + ,5083806 + ,5144139 + ,5144139 + ,5105373 + ,5004090 + ,5527158 + ,5606874 + ,5486481 + ,5204472 + ,5325138 + ,5144139 + ,5225766 + ,5264805 + ,5305482 + ,5204472 + ,5225766 + ,5083806 + ,5527158 + ,5667207 + ,5546814 + ,5325138 + ,5566197 + ,5305482 + ,5546814 + ,5527158 + ,5587491 + ,5365815 + ,5606874 + ,5587491 + ,5949216 + ,5867589 + ,5546814 + ,5385198 + ,5606874 + ,5305482 + ,5527158 + ,5566197 + ,5647824 + ,5467098 + ,5566197 + ,5626530 + ,5848206 + ,5667207 + ,5426148 + ,5165433 + ,5406765 + ,4743375 + ,5064423 + ,5245149 + ,5426148 + ,5165433 + ,5165433 + ,5165433 + ,5305482 + ,5105373 + ,4842747 + ,4622982 + ,4782414 + ,4159974 + ,4541355 + ,4763031 + ,4803708 + ,4582032 + ,4601415 + ,4541355 + ,4743375 + ,4601415 + ,4321590 + ,4119297 + ,4461366 + ,3718533 + ,4200924 + ,4420689 + ,4420689 + ,4159974 + ,3918915 + ,3899532 + ,4119297 + ,3918915 + ,3537807 + ,3275181 + ,3557190 + ,2894073 + ,3496857 + ,3817632 + ,3918915 + ,3697239 + ,3417141 + ,3617523 + ,3697239 + ,3636906 + ,3033849 + ,2754024 + ,2954133 + ,2351349 + ,2973789 + ,3195465 + ,3376191 + ,3074799 + ,2792790 + ,2954133 + ,3033849 + ,2874417 + ,2271633 + ,2009007 + ,2250066 + ,1586949 + ,2310399 + ,2754024) + ,dim=c(1 + ,120) + ,dimnames=list(c('A') + ,1:120)) > y <- array(NA,dim=c(1,120),dimnames=list(c('A'),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/11osu1439571444.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,] 1586949 [2,] 3858582 [3,] 5054732 [4,] 5375506 [5,] 5949216 $n [1] 120 $conf [,1] [1,] 4835940 [2,] 5273523 $out numeric(0) $group numeric(0) $names [1] "A" > 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/28kec1439571444.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/3gquz1439571444.tab") > > try(system("convert tmp/11osu1439571444.ps tmp/11osu1439571444.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.602 0.115 0.710