R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree" Copyright (C) 2015 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(283 + ,411 + ,234 + ,585 + ,207 + ,695 + ,204 + ,000 + ,220 + ,791 + ,222 + ,335 + ,303 + ,510 + ,201 + ,602 + ,218 + ,279 + ,207 + ,253 + ,217 + ,639 + ,231 + ,043 + ,302 + ,988 + ,221 + ,415 + ,213 + ,989 + ,190 + ,507 + ,199 + ,397 + ,201 + ,077 + ,261 + ,048 + ,241 + ,508 + ,194 + ,637 + ,240 + ,044 + ,253 + ,534 + ,269 + ,220 + ,270 + ,820 + ,354 + ,121 + ,315 + ,233 + ,297 + ,098 + ,258 + ,289 + ,276 + ,246 + ,246 + ,652 + ,242 + ,945 + ,210 + ,838 + ,246 + ,343 + ,234 + ,636 + ,229 + ,011 + ,238 + ,756 + ,283 + ,696 + ,226 + ,656 + ,229 + ,790 + ,219831 + ,232 + ,331 + ,315 + ,447 + ,251 + ,031 + ,297 + ,019 + ,208 + ,424 + ,311 + ,626 + ,352 + ,320 + ,375 + ,214 + ,419 + ,501 + ,664 + ,867 + ,483 + ,142 + ,312 + ,717 + ,228 + ,228 + ,230 + ,978 + ,218 + ,033 + ,225 + ,566 + ,207 + ,708 + ,241 + ,861 + ,208 + ,381 + ,209 + ,071 + ,214 + ,514 + ,195 + ,868 + ,190 + ,208 + ,187 + ,651 + ,215 + ,934 + ,213 + ,012 + ,236 + ,845 + ,154 + ,595 + ,193 + ,485 + ,231 + ,875 + ,192 + ,259 + ,191 + ,609 + ,212 + ,911 + ,238 + ,596 + ,203 + ,033 + ,258 + ,272 + ,314 + ,681 + ,289 + ,789 + ,297 + ,541 + ,239 + ,578 + ,207 + ,798 + ,254 + ,091 + ,242 + ,544 + ,218 + ,067 + ,217 + ,463 + ,229 + ,438 + ,216 + ,485 + ,238 + ,410 + ,223 + ,108 + ,221 + ,267 + ,224 + ,802 + ,233 + ,630 + ,235 + ,134 + ,309 + ,660 + ,253 + ,229 + ,293 + ,530 + ,273 + ,323 + ,297 + ,578 + ,341 + ,589 + ,389 + ,911 + ,398 + ,685 + ,629 + ,637 + ,522 + ,502 + ,358 + ,941 + ,252 + ,783 + ,236 + ,585 + ,224 + ,995 + ,225 + ,721 + ,223 + ,338 + ,228 + ,952 + ,212 + ,759 + ,200270 + ,211 + ,925 + ,191 + ,206 + ,200 + ,511 + ,205 + ,944 + ,289 + ,288 + ,186 + ,209 + ,197 + ,515 + ,182 + ,038 + ,181 + ,606 + ,223 + ,337 + ,201 + ,213 + ,220 + ,700 + ,194 + ,043 + ,224 + ,593 + ,249 + ,907 + ,238 + ,613 + ,266 + ,200 + ,274 + ,197 + ,288 + ,601 + ,242 + ,662 + ,232 + ,105 + ,267 + ,842 + ,219 + ,037 + ,198 + ,404 + ,203 + ,910 + ,209 + ,685 + ,214 + ,274 + ,215 + ,376 + ,217 + ,711 + ,224 + ,819 + ,217 + ,142 + ,221 + ,445 + ,213 + ,483 + ,282 + ,063 + ,236 + ,194 + ,297 + ,296 + ,255 + ,885 + ,264 + ,502 + ,311 + ,580 + ,416 + ,595 + ,356 + ,762 + ,537 + ,286 + ,532 + ,855) + ,dim=c(2 + ,156) + ,dimnames=list(c('V1' + ,'V2') + ,1:156)) > y <- array(NA,dim=c(2,156),dimnames=list(c('V1','V2'),1:156)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par2 = 'no' > par1 = 'grey' > ylab = 'value' > xlab = 'variables' > main = 'Notched Boxplots' > par2 <- 'no' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.327 (Mon, 28 Dec 2015 11:07:50 +0000) > #Author: root > #To cite this work: Wessa P., (2015), Notched Boxplots (v1.0.7) 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 > # > if(par2=='yes') { + z <- na.omit(as.data.frame(t(y))) + } else { + z <- as.data.frame(t(y)) + } > postscript(file="/var/wessaorg/rcomp/tmp/1m7jp1456781683.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,] 12.0 0.0 [2,] 216.0 216.5 [3,] 266.5 288.5 [4,] 534.5 557.0 [5,] 995.0 989.0 $n [1] 156 156 $conf [,1] [,2] [1,] 226.2094 245.4263 [2,] 306.7906 331.5737 $out [1] 219831 200270 $group [1] 1 2 $names [1] "V1" "V2" > 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/2qrpi1456781683.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/3o9f91456781683.tab") > > try(system("convert tmp/1m7jp1456781683.ps tmp/1m7jp1456781683.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.578 0.125 0.704