R version 3.4.2 (2017-09-28) -- "Short Summer" Copyright (C) 2017 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. > source('/home/pw/wessanet/cretab') > > > > myrfcuid = 'r0703881' > > x <- array(list(85000,3341,45000,19093,76000,42000,77000,40053,69153,3341,115000,76800),dim=c(2,6),dimnames=list(c('P&O','Star'),1:6)) > y <- array(NA,dim=c(2,6),dimnames=list(c('P&O','Star'),1:6)) > 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, 10 Jul 2017 10:23:18 +0200) > #Author: root > #To cite this work: Wessa P., (2017), Notched Boxplots (v1.0.10) 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="/home/pw/wessanet/rcomp/tmp/1h7o11512724325.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,] 69153 3341 [2,] 69153 3341 [3,] 76500 29573 [4,] 85000 42000 [5,] 85000 76800 $n [1] 6 6 $conf [,1] [,2] [1,] 66278.17 4636.696 [2,] 86721.83 54509.304 $out [1] 45000 115000 $group [1] 1 1 $names [1] "P&O" "Star" Warning message: In bxp(list(stats = c(69153, 69153, 76500, 85000, 85000, 3341, 3341, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Boxplot statistics',6,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Variable',1,TRUE) > a<-table.element(a,'lower whisker',1,TRUE) > a<-table.element(a,'lower hinge',1,TRUE) > a<-table.element(a,'median',1,TRUE) > a<-table.element(a,'upper hinge',1,TRUE) > a<-table.element(a,'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="/home/pw/wessanet/rcomp/tmp/250ss1512724325.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="/home/pw/wessanet/rcomp/tmp/3dj7w1512724325.tab") > > try(system("convert /home/pw/wessanet/rcomp/tmp/1h7o11512724325.ps /home/pw/wessanet/rcomp/tmp/1h7o11512724325.png",intern=TRUE)) character(0) > > proc.time() user system elapsed 0.632 0.176 0.807