R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-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(103.34 + ,98.60 + ,96.33 + ,102.60 + ,96.90 + ,96.33 + ,100.69 + ,95.10 + ,95.05 + ,105.67 + ,97.00 + ,96.84 + ,123.61 + ,112.70 + ,96.92 + ,113.08 + ,102.90 + ,97.44 + ,106.46 + ,97.40 + ,97.78 + ,123.38 + ,111.40 + ,97.69 + ,109.87 + ,87.40 + ,96.67 + ,95.74 + ,96.80 + ,98.29 + ,123.06 + ,114.10 + ,98.20 + ,123.39 + ,110.30 + ,98.71 + ,120.28 + ,103.90 + ,98.54 + ,115.33 + ,101.60 + ,98.20 + ,110.40 + ,94.60 + ,100.80 + ,114.49 + ,95.90 + ,101.33 + ,132.03 + ,104.70 + ,101.88 + ,123.16 + ,102.80 + ,101.85 + ,118.82 + ,98.10 + ,102.04 + ,128.32 + ,113.90 + ,102.22 + ,112.24 + ,80.90 + ,102.63 + ,104.53 + ,95.70 + ,102.65 + ,132.57 + ,113.20 + ,102.54 + ,122.52 + ,105.90 + ,102.37 + ,131.80 + ,108.80 + ,102.68 + ,124.55 + ,102.30 + ,102.76 + ,120.96 + ,99.00 + ,102.82 + ,122.60 + ,100.70 + ,103.31 + ,145.52 + ,115.50 + ,103.23 + ,118.57 + ,100.70 + ,103.60 + ,134.25 + ,109.90 + ,103.95 + ,136.70 + ,114.60 + ,103.93 + ,121.37 + ,85.40 + ,104.25 + ,111.63 + ,100.50 + ,104.38 + ,134.42 + ,114.80 + ,104.36 + ,137.65 + ,116.50 + ,104.32 + ,137.86 + ,112.90 + ,104.58 + ,119.77 + ,102.00 + ,104.68 + ,130.69 + ,106.00 + ,104.92 + ,128.28 + ,105.30 + ,105.46 + ,147.45 + ,118.80 + ,105.23 + ,128.42 + ,106.10 + ,105.58 + ,136.90 + ,109.30 + ,105.34 + ,143.95 + ,117.20 + ,105.28 + ,135.64 + ,92.50 + ,105.70 + ,122.48 + ,104.20 + ,105.67) + ,dim=c(3 + ,46) + ,dimnames=list(c('uitvoer' + ,'Tot.prod' + ,'index') + ,1:46)) > y <- array(NA,dim=c(3,46),dimnames=list(c('uitvoer','Tot.prod','index'),1:46)) > 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/1h50y1355965569.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] [,3] [1,] 95.74 80.9 95.05 [2,] 113.08 97.4 98.29 [3,] 122.83 103.4 102.64 [4,] 132.03 111.4 104.36 [5,] 147.45 118.8 105.70 $n [1] 46 46 46 $conf [,1] [,2] [,3] [1,] 118.4154 100.1386 101.2259 [2,] 127.2446 106.6614 104.0541 $out numeric(0) $group numeric(0) $names [1] "uitvoer" "Tot.prod" "index" > 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/2c6e71355965569.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/36r7p1355965569.tab") > > try(system("convert tmp/1h50y1355965569.ps tmp/1h50y1355965569.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.947 0.188 1.117