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(4446.3,4432.8,4417.8,4395.5,4374,4356,4334.3,4315.1,4298,4278.2,4258.7,4243.6,4235.8,4226.3,4211.7,4194.4,4179.1,4166.1,4158.9,4149.2,4143.5,4146.3,4145.4,4142.1,4142.5,4148.2,4144.8,4155.1,4158,4146.7,4139.7,4125.3,4103,4076.7,4060.7,4041.2,4015.8,3998,3993,3990.1,3971.5,3948.3,3930.3,3914.3,3901.9,3893.7,3888.1,3882.2,3883.5,3882.6,3876.7,3873.3,3872.3,3867.8,3858.9,3818.2,3810.3,3806.8,3811.4,3818.2,3826.8,3833.6,3833,3839.5,3855.1,3860.4,3855.8,3856.3,3861.6,3858.4,3854.1,3851.8,3851.3,3844.8,3833.3,3826.9,3813.1,3795.5,3779.7,3765.5),dim=c(1,80),dimnames=list(c('Werkgelegenheid'),1:80)) > y <- array(NA,dim=c(1,80),dimnames=list(c('Werkgelegenheid'),1:80)) > 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 = 'Reeks' > main = 'Arbeidsmarkt: werkgelegenheid' > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/1zdx91235820839.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] [1,] 3765.50 [2,] 3855.45 [3,] 3980.80 [4,] 4156.55 [5,] 4446.30 $n [1] 80 $conf [,1] [1,] 3927.611 [2,] 4033.989 $out numeric(0) $group numeric(0) $names [1] "Werkgelegenheid" > 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/2lwyf1235820840.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/3bnfm1235820840.tab") > > system("convert tmp/1zdx91235820839.ps tmp/1zdx91235820839.png") > > > proc.time() user system elapsed 0.370 0.154 0.423