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(3595,2564,3914,3869,4159,4145,3676,4091,3794,4117,3446,3281,3504,2186,3958,3476,3353,4009,3480,3924,3098,3101,2944,2211,3389,2497,3497,3520,4404,4191,3849,8255,3734,3000,3060,2955,3507,1986,3287,3229,3215,3448,3764,3371,2734,3160,2837,2429,2766,2574,3851,2725,3289,3451,3848,3481,3348,3592,3682,3472,4058,2312,3655,3322,3811,4348,3341,3603,3032,2700,3475,2640,3353,2916,3186,3180,3902,4151,4164,4023,3499,3431,4145,3874,3796,2617,3711,3580,3949,5267,3740,3832,3243,3441,4407,3228,4814,3397,3908,3971,5250,4625,3937,4486,4004,4132,5560,4685,3922,3172,3759,4280,4138,4207,4634,4158,3996,3933,4308,3151,4143,3616,4429,4222,5219,4436,4929,4806,5755,4849,5592,5023,4163,3521,4962,4649,5208,5388,4755,5148,4491,4847,5732,3996,5731,4483,5040,4684,6102,5454,4904,4770,5369,5309,5578,5074,4619,3505,4731,4953,5011,5155,5299,5308,4146,5171,4625,4003,4736,4379),dim=c(2,85),dimnames=list(c('bouwver','begonnen_geb'),1:85)) > y <- array(NA,dim=c(2,85),dimnames=list(c('bouwver','begonnen_geb'),1:85)) > 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/1qc9m1257956399.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] [1,] 2734 1986 [2,] 3499 3229 [3,] 3922 3874 [4,] 4634 4483 [5,] 6102 5454 $n [1] 85 85 $conf [,1] [,2] [1,] 3727.489 3659.096 [2,] 4116.511 4088.904 $out [1] 8255 $group [1] 2 $names [1] "bouwver" "begonnen_geb" > 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/296281257956399.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/35at51257956399.tab") > > system("convert tmp/1qc9m1257956399.ps tmp/1qc9m1257956399.png") > > > proc.time() user system elapsed 0.397 0.154 0.824