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(2174.56,17704,2196.72,15548,2350.44,28029,2440.25,29383,2408.64,36438,2472.81,32034,2407.6,22679,2454.62,24319,2448.05,18004,2497.84,17537,2645.64,20366,2756.76,22782,2849.27,19169,2921.44,13807,2981.85,29743,3080.58,25591,3106.22,29096,3119.31,26482,3061.26,22405,3097.31,27044,3161.69,17970,3257.16,18730,3277.01,19684,3295.32,19785,3363.99,18479,3494.17,10698,3667.03,31956,3813.06,29506,3917.96,34506,3895.51,27165,3801.06,26736,3570.12,23691,3701.61,18157,3862.27,17328,3970.1,18205,4138.52,20995,4199.75,17382,4290.89,9367,4443.91,31124,4502.64,26551,4356.98,30651,4591.27,25859,4696.96,25100,4621.4,25778,4562.84,20418,4202.52,18688,4296.49,20424,4435.23,24776,4105.18,19814,4116.68,12738,3844.49,31566,3720.98,30111,3674.4,30019,3857.62,31934,3801.06,25826,3504.37,26835,3032.6,20205,3047.03,17789,2962.34,20520,2197.82,22518,2014.45,15572),dim=c(2,61),dimnames=list(c('Bel_20','Inschrijvingen_nieuwe_persoonswagens'),1:61)) > y <- array(NA,dim=c(2,61),dimnames=list(c('Bel_20','Inschrijvingen_nieuwe_persoonswagens'),1:61)) > 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/freestat/rcomp/tmp/1uzh11229685293.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,] 2014.45 9367 [2,] 2921.44 18479 [3,] 3494.17 22679 [4,] 3970.10 27165 [5,] 4696.96 36438 $n [1] 61 61 $conf [,1] [,2] [1,] 3282.028 20921.84 [2,] 3706.312 24436.16 $out numeric(0) $group numeric(0) $names [1] "Bel_20" [2] "Inschrijvingen_nieuwe_persoonswagens" > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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/freestat/rcomp/tmp/2a9w21229685293.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/freestat/rcomp/tmp/3xgrg1229685293.tab") > > system("convert tmp/1uzh11229685293.ps tmp/1uzh11229685293.png") > > > proc.time() user system elapsed 0.529 0.222 0.575