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(1.4816 + ,133.91 + ,0.91557 + ,43.6188 + ,1.4562 + ,133.14 + ,0.89135 + ,44.7624 + ,1.4268 + ,135.31 + ,0.86265 + ,45.1972 + ,1.4088 + ,133.09 + ,0.86092 + ,44.3881 + ,1.4016 + ,135.39 + ,0.85670 + ,43.5552 + ,1.3650 + ,131.85 + ,0.88444 + ,43.5678 + ,1.3190 + ,130.25 + ,0.89756 + ,44.2135 + ,1.3050 + ,127.65 + ,0.91966 + ,45.1450 + ,1.2785 + ,118.30 + ,0.88691 + ,45.8079 + ,1.3239 + ,119.73 + ,0.91819 + ,42.3282 + ,1.3449 + ,122.51 + ,0.90448 + ,37.8999 + ,1.2732 + ,123.28 + ,0.83063 + ,34.7964 + ,1.3322 + ,133.52 + ,0.78668 + ,35.2144 + ,1.4369 + ,153.20 + ,0.79924 + ,36.3727 + ,1.4975 + ,163.63 + ,0.79279 + ,36.2502 + ,1.5770 + ,168.45 + ,0.79308 + ,36.8261 + ,1.5553 + ,166.26 + ,0.79152 + ,36.7723 + ,1.5557 + ,162.31 + ,0.79209 + ,36.9042 + ,1.5750 + ,161.56 + ,0.79487 + ,37.0494 + ,1.5527 + ,156.59 + ,0.77494 + ,36.8259 + ,1.4748 + ,157.97 + ,0.75094 + ,36.1357 + ,1.4718 + ,158.68 + ,0.74725 + ,36.0300 + ,1.4570 + ,163.55 + ,0.72064 + ,35.7927 + ,1.4684 + ,162.89 + ,0.70896 + ,35.9174 + ,1.4227 + ,164.95 + ,0.69614 + ,35.4008 + ,1.3896 + ,159.82 + ,0.68887 + ,35.1723 + ,1.3622 + ,159.05 + ,0.67766 + ,34.9211 + ,1.3716 + ,166.76 + ,0.67440 + ,35.0292 + ,1.3419 + ,164.55 + ,0.67562 + ,34.7739 + ,1.3511 + ,163.22 + ,0.68136 + ,34.8999 + ,1.3516 + ,160.68 + ,0.67934 + ,34.9054 + ,1.3242 + ,155.24 + ,0.68021 + ,34.5680 + ,1.3074 + ,157.60 + ,0.66800 + ,34.4060 + ,1.2999 + ,156.56 + ,0.66341 + ,34.4578 + ,1.3213 + ,154.82 + ,0.67286 + ,34.7316 + ,1.2881 + ,151.11 + ,0.67397 + ,34.2602 + ,1.2611 + ,149.65 + ,0.67254 + ,33.8849 + ,1.2727 + ,148.99 + ,0.67511 + ,34.0549 + ,1.2811 + ,148.53 + ,0.67669 + ,34.2755 + ,1.2684 + ,146.70 + ,0.68782 + ,34.1393 + ,1.2650 + ,145.11 + ,0.68666 + ,34.1587 + ,1.2770 + ,142.70 + ,0.68330 + ,34.5386 + ,1.2271 + ,143.59 + ,0.69463 + ,33.7987 + ,1.2020 + ,140.96 + ,0.68935 + ,33.4973 + ,1.1938 + ,140.77 + ,0.68297 + ,33.6802 + ,1.2103 + ,139.81 + ,0.68598 + ,34.3284 + ,1.1856 + ,140.58 + ,0.67922 + ,34.1538 + ,1.1786 + ,139.59 + ,0.67933 + ,33.9184 + ,1.2015 + ,138.05 + ,0.68137 + ,34.3262 + ,1.2256 + ,136.06 + ,0.67760 + ,34.7750 + ,1.2292 + ,135.98 + ,0.68527 + ,35.0119 + ,1.2037 + ,134.75 + ,0.68756 + ,34.5513 + ,1.2165 + ,132.22 + ,0.66895 + ,34.6951 + ,1.2694 + ,135.37 + ,0.68399 + ,35.4730 + ,1.2938 + ,138.84 + ,0.68293 + ,35.9794 + ,1.3201 + ,138.83 + ,0.69233 + ,36.4789 + ,1.3014 + ,136.55 + ,0.68968 + ,36.3910 + ,1.3119 + ,135.63 + ,0.69867 + ,36.6704 + ,1.3408 + ,139.14 + ,0.69500 + ,37.4162 + ,1.2991 + ,136.09 + ,0.69862 + ,37.1185) + ,dim=c(4 + ,60) + ,dimnames=list(c('dollar/euro' + ,'japanseyen/euro' + ,'pondVK/euro' + ,'roebel/euro') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('dollar/euro','japanseyen/euro','pondVK/euro','roebel/euro'),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/127te1258116735.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,] 1.17860 118.300 0.663410 33.49730 [2,] 1.27105 135.380 0.679775 34.49820 [3,] 1.32070 141.830 0.691005 35.30760 [4,] 1.41575 158.325 0.792935 36.86515 [5,] 1.57700 168.450 0.919660 37.89990 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 1.291185 137.1497 0.667923 34.82480 [2,] 1.350215 146.5103 0.714087 35.79040 $out [1] 43.6188 44.7624 45.1972 44.3881 43.5552 43.5678 44.2135 45.1450 45.8079 [10] 42.3282 $group [1] 4 4 4 4 4 4 4 4 4 4 $names [1] "dollar/euro" "japanseyen/euro" "pondVK/euro" "roebel/euro" Warning message: In bxp(list(stats = c(1.1786, 1.27105, 1.3207, 1.41575, 1.577, 118.3, : 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/2cu731258116735.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/3xvo61258116735.tab") > > system("convert tmp/127te1258116735.ps tmp/127te1258116735.png") > > > proc.time() user system elapsed 0.403 0.167 0.457