R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(151.7 + ,105.2 + ,115.2 + ,126.8 + ,121.3 + ,105.2 + ,119.8 + ,128.5 + ,133.0 + ,105.6 + ,117.5 + ,126.8 + ,119.6 + ,105.6 + ,123.2 + ,128.5 + ,122.2 + ,106.2 + ,129.0 + ,130.2 + ,117.4 + ,106.3 + ,124.4 + ,131.8 + ,106.7 + ,106.4 + ,117.5 + ,130.2 + ,87.5 + ,106.9 + ,116.3 + ,126.8 + ,81.0 + ,107.2 + ,119.8 + ,130.2 + ,110.3 + ,107.3 + ,112.9 + ,126.8 + ,87.0 + ,107.3 + ,109.4 + ,123.5 + ,55.7 + ,107.4 + ,108.3 + ,121.8 + ,146.0 + ,107.55 + ,108.3 + ,120.2 + ,137.5 + ,107.87 + ,110.6 + ,118.5 + ,138.5 + ,108.37 + ,111.7 + ,121.8 + ,135.6 + ,108.38 + ,118.6 + ,125.2 + ,107.3 + ,107.92 + ,116.3 + ,125.2 + ,99.0 + ,108.03 + ,114.0 + ,120.2 + ,91.4 + ,108.14 + ,115.2 + ,120.2 + ,68.4 + ,108.3 + ,115.2 + ,120.2 + ,82.6 + ,108.64 + ,117.5 + ,123.5 + ,98.4 + ,108.66 + ,116.3 + ,130.2 + ,71.3 + ,109.04 + ,114.0 + ,123.5 + ,47.6 + ,109.03 + ,112.9 + ,123.5 + ,130.8 + ,109.03 + ,116.3 + ,125.2 + ,113.6 + ,109.54 + ,118.6 + ,130.2 + ,125.7 + ,109.75 + ,118.6 + ,135.2 + ,113.6 + ,109.83 + ,115.2 + ,125.2 + ,97.1 + ,109.65 + ,110.6 + ,116.8 + ,104.4 + ,109.82 + ,111.7 + ,118.5 + ,91.8 + ,109.95 + ,112.9 + ,118.5 + ,75.1 + ,110.12 + ,117.5 + ,121.8 + ,89.2 + ,110.15 + ,119.8 + ,123.5 + ,110.2 + ,110.2 + ,116.3 + ,123.5 + ,78.4 + ,109.99 + ,116.3 + ,125.2 + ,68.4 + ,110.14 + ,115.2 + ,123.5 + ,122.8 + ,110.14 + ,116.3 + ,123.5 + ,129.7 + ,110.81 + ,117.5 + ,121.8 + ,159.1 + ,110.97 + ,118.6 + ,126.8 + ,139.0 + ,110.99 + ,122.1 + ,133.5 + ,102.2 + ,109.73 + ,129.0 + ,138.5 + ,113.6 + ,109.81 + ,129.0 + ,135.2 + ,81.5 + ,110.02 + ,130.1 + ,138.5 + ,77.4 + ,110.18 + ,130.1 + ,146.9 + ,87.6 + ,110.21 + ,130.1 + ,148.5 + ,101.2 + ,110.25 + ,134.7 + ,155.2 + ,87.2 + ,110.36 + ,131.3 + ,151.9 + ,64.9 + ,110.51 + ,124.4 + ,150.2 + ,133.1 + ,110.64 + ,123.2 + ,143.5 + ,118.0 + ,110.95 + ,129.0 + ,146.9 + ,135.9 + ,111.18 + ,131.3 + ,155.2 + ,125.7 + ,111.19 + ,139.3 + ,163.6 + ,108.0 + ,111.69 + ,138.2 + ,161.9 + ,128.3 + ,111.7 + ,141.7 + ,171.9 + ,84.7 + ,111.83 + ,148.6 + ,176.9 + ,86.4 + ,111.77 + ,150.9 + ,176.9 + ,92.2 + ,111.73 + ,157.8 + ,180.3 + ,95.8 + ,112.01 + ,155.5 + ,181.9 + ,92.3 + ,111.86 + ,145.1 + ,173.6 + ,54.3 + ,112.04 + ,145.1 + ,166.9) + ,dim=c(4 + ,60) + ,dimnames=list(c('IPERS' + ,'PPERS' + ,'PB' + ,'PD') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('IPERS','PPERS','PB','PD'),1:60)) > 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' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/10imm1257774546.ps",horizontal=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] [,4] [1,] 47.60 105.200 108.30 116.80 [2,] 86.70 107.975 115.20 123.50 [3,] 103.30 109.815 118.60 127.65 [4,] 124.25 110.575 129.55 146.90 [5,] 159.10 112.040 150.90 181.90 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 95.64066 109.2847 115.6729 122.8769 [2,] 110.95934 110.3453 121.5271 132.4231 $out [1] 157.8 155.5 $group [1] 3 3 $names [1] "IPERS" "PPERS" "PB" "PD" Warning message: In bxp(list(stats = c(47.6, 86.7, 103.3, 124.25, 159.1, 105.2, 107.975, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/www/html/rcomp/tmp/2e7rp1257774546.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/www/html/rcomp/tmp/37v431257774546.tab") > > system("convert tmp/10imm1257774546.ps tmp/10imm1257774546.png") > > > proc.time() user system elapsed 0.379 0.163 0.451