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(105.7 + ,80.9 + ,94.1 + ,-11 + ,105.7 + ,113.8 + ,95.8 + ,-9 + ,111.1 + ,71.2 + ,99.3 + ,-10 + ,82.4 + ,55.8 + ,101.1 + ,-13 + ,60 + ,61 + ,104 + ,-11 + ,107.3 + ,60.8 + ,99 + ,-5 + ,99.3 + ,74.3 + ,105.4 + ,-15 + ,113.5 + ,66.5 + ,107.1 + ,-6 + ,108.9 + ,71 + ,110.7 + ,-6 + ,100.2 + ,61.6 + ,117.1 + ,-3 + ,103.9 + ,66.4 + ,118.7 + ,-1 + ,138.7 + ,74.7 + ,126.5 + ,-3 + ,120.2 + ,72.4 + ,127.5 + ,-4 + ,100.2 + ,76.4 + ,134.6 + ,-6 + ,143.2 + ,86.4 + ,131.8 + ,0 + ,70.9 + ,73.9 + ,135.9 + ,-4 + ,85.2 + ,133.1 + ,142.7 + ,-2 + ,133 + ,83.3 + ,141.7 + ,-2 + ,136.6 + ,85.8 + ,153.4 + ,-6 + ,117.9 + ,76.8 + ,145 + ,-7 + ,106.3 + ,92.7 + ,137.7 + ,-6 + ,122.3 + ,68.8 + ,148.3 + ,-6 + ,125.5 + ,69.4 + ,152.2 + ,-3 + ,148.4 + ,97 + ,169.4 + ,-2 + ,126.3 + ,84.6 + ,168.6 + ,-5 + ,99.6 + ,84.2 + ,161.1 + ,-11 + ,140.4 + ,201.8 + ,174.1 + ,-11 + ,80.3 + ,83.1 + ,179 + ,-11 + ,92.6 + ,69.4 + ,190.6 + ,-10 + ,138.5 + ,78.8 + ,190 + ,-14 + ,110.9 + ,77.1 + ,181.6 + ,-8 + ,119.6 + ,90.7 + ,174.8 + ,-9 + ,105 + ,107.5 + ,180.5 + ,-5 + ,109 + ,81.4 + ,196.8 + ,-1 + ,129.4 + ,83.3 + ,193.8 + ,-2 + ,148.6 + ,105.7 + ,197 + ,-5 + ,101.4 + ,85.8 + ,216.3 + ,-4 + ,134.8 + ,87.2 + ,221.4 + ,-6 + ,143.7 + ,87.5 + ,217.9 + ,-2 + ,81.6 + ,77.5 + ,229.7 + ,-2 + ,90.3 + ,78.5 + ,227.4 + ,-2 + ,141.5 + ,89.7 + ,204.2 + ,-2 + ,140.7 + ,94.3 + ,196.6 + ,2 + ,140.2 + ,104.4 + ,198.8 + ,1 + ,100.2 + ,115.9 + ,207.5 + ,-8 + ,125.7 + ,90 + ,190.7 + ,-1 + ,119.6 + ,91.1 + ,201.6 + ,1 + ,134.7 + ,119.8 + ,210.5 + ,-1 + ,109 + ,101.9 + ,223.5 + ,2 + ,116.3 + ,99.2 + ,223.8 + ,2 + ,146.9 + ,115.7 + ,231.2 + ,1 + ,97.4 + ,94.9 + ,244 + ,-1 + ,89.4 + ,99.8 + ,234.7 + ,-2 + ,132.1 + ,109.6 + ,250.2 + ,-2 + ,139.8 + ,109 + ,265.7 + ,-1 + ,129 + ,119.6 + ,287.6 + ,-8 + ,112.5 + ,119.2 + ,283.3 + ,-4 + ,121.9 + ,94.6 + ,295.4 + ,-6 + ,121.7 + ,102.5 + ,312.3 + ,-3 + ,123.1 + ,105.4 + ,333.8 + ,-3) + ,dim=c(4 + ,60) + ,dimnames=list(c('Auto' + ,'overige' + ,'prijsindex' + ,'consumentenvertrouwen') + ,1:60)) > y <- array(NA,dim=c(4,60),dimnames=list(c('Auto','overige','prijsindex','consumentenvertrouwen'),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 = 'Waarde' > xlab = 'Tijd' > 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/15tid1257947419.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,] 60.00 55.80 94.10 -15.0 [2,] 100.80 75.55 135.25 -7.5 [3,] 117.10 86.10 181.05 -4.0 [4,] 133.85 102.20 219.65 -2.0 [5,] 148.60 133.10 333.80 2.0 $n [1] 60 60 60 60 $conf [,1] [,2] [,3] [,4] [1,] 110.3586 80.66401 163.8343 -5.121874 [2,] 123.8414 91.53599 198.2657 -2.878126 $out [1] 201.8 $group [1] 2 $names [1] "Auto" "overige" "prijsindex" [4] "consumentenvertrouwen" > 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/2yyn41257947419.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/30etf1257947420.tab") > > system("convert tmp/15tid1257947419.ps tmp/15tid1257947419.png") > > > proc.time() user system elapsed 0.581 0.245 0.666