R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(2497.84 + ,10032.80 + ,41.84 + ,2645.64 + ,10204.59 + ,42.94 + ,2756.76 + ,10001.60 + ,49.14 + ,2849.27 + ,10411.75 + ,44.61 + ,2921.44 + ,10673.38 + ,40.22 + ,2981.85 + ,10539.51 + ,44.23 + ,3080.58 + ,10723.78 + ,45.85 + ,3106.22 + ,10682.06 + ,53.38 + ,3119.31 + ,10283.19 + ,53.26 + ,3061.26 + ,10377.18 + ,51.80 + ,3097.31 + ,10486.64 + ,55.30 + ,3161.69 + ,10545.38 + ,57.81 + ,3257.16 + ,10554.27 + ,63.96 + ,3277.01 + ,10532.54 + ,63.77 + ,3295.32 + ,10324.31 + ,59.15 + ,3363.99 + ,10695.25 + ,56.12 + ,3494.17 + ,10827.81 + ,57.42 + ,3667.03 + ,10872.48 + ,63.52 + ,3813.06 + ,10971.19 + ,61.71 + ,3917.96 + ,11145.65 + ,63.01 + ,3895.51 + ,11234.68 + ,68.18 + ,3801.06 + ,11333.88 + ,72.03 + ,3570.12 + ,10997.97 + ,69.75 + ,3701.61 + ,11036.89 + ,74.41 + ,3862.27 + ,11257.35 + ,74.33 + ,3970.10 + ,11533.59 + ,64.24 + ,4138.52 + ,11963.12 + ,60.03 + ,4199.75 + ,12185.15 + ,59.44 + ,4290.89 + ,12377.62 + ,62.50 + ,4443.91 + ,12512.89 + ,55.04 + ,4502.64 + ,12631.48 + ,58.34 + ,4356.98 + ,12268.53 + ,61.92 + ,4591.27 + ,12754.80 + ,67.65 + ,4696.96 + ,13407.75 + ,67.68 + ,4621.40 + ,13480.21 + ,70.30 + ,4562.84 + ,13673.28 + ,75.26 + ,4202.52 + ,13239.71 + ,71.44 + ,4296.49 + ,13557.69 + ,76.36 + ,4435.23 + ,13901.28 + ,81.71 + ,4105.18 + ,13200.58 + ,92.60 + ,4116.68 + ,13406.97 + ,90.60 + ,3844.49 + ,12538.12 + ,92.23 + ,3720.98 + ,12419.57 + ,94.09 + ,3674.40 + ,12193.88 + ,102.79 + ,3857.62 + ,12656.63 + ,109.65 + ,3801.06 + ,12812.48 + ,124.05 + ,3504.37 + ,12056.67 + ,132.69 + ,3032.60 + ,11322.38 + ,135.81 + ,3047.03 + ,11530.75 + ,116.07 + ,2962.34 + ,11114.08 + ,101.42) + ,dim=c(3 + ,50) + ,dimnames=list(c('X1' + ,'X2' + ,'X3') + ,1:50)) > y <- array(NA,dim=c(3,50),dimnames=list(c('X1','X2','X3'),1:50)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'blue' > 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: Wessa P., (2007), Notched Boxplots (v1.0.4) 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 > #Technical description: Write here your technical program description > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/157vv1229470805.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > (r<-boxplot(log(z) ,xlab=xlab,ylab=ylab,main=main,notch=TRUE,col=par1)) $stats [,1] [,2] [,3] [1,] 7.823182 9.210500 3.694364 [2,] 8.041162 9.275508 4.027492 [3,] 8.219133 9.331657 4.156770 [4,] 8.328094 9.436529 4.335459 [5,] 8.454671 9.539736 4.754193 $n [1] 50 50 50 $conf [,1] [,2] [,3] [1,] 8.155019 9.295677 4.087957 [2,] 8.283246 9.367636 4.225584 $out [1] 4.820685 4.888016 4.911257 $group [1] 3 3 3 $names [1] "X1" "X2" "X3" > 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/22xw01229470805.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/37frf1229470805.tab") > > system("convert tmp/157vv1229470805.ps tmp/157vv1229470805.png") > > > proc.time() user system elapsed 0.370 0.163 0.481