R version 2.8.1 (2008-12-22) 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(1686 + ,1591 + ,2304 + ,1712 + ,1471 + ,1377 + ,1966 + ,2453 + ,1984 + ,2596 + ,4087 + ,5179 + ,1530 + ,1523 + ,1633 + ,1976 + ,1170 + ,1480 + ,1781 + ,2472 + ,1981 + ,2273 + ,3857 + ,4551 + ,1510 + ,1329 + ,1518 + ,1790 + ,1537 + ,1449 + ,1954 + ,1897 + ,1706 + ,2514 + ,3593 + ,4524 + ,1609 + ,1638 + ,2030 + ,1375 + ,1320 + ,1245 + ,1600 + ,2298 + ,2191 + ,2511 + ,3440 + ,4923 + ,1609 + ,1435 + ,2061 + ,1789 + ,1567 + ,1404 + ,1597 + ,3159 + ,1759 + ,2504 + ,4273 + ,5274 + ,1771 + ,1682 + ,1846 + ,1589 + ,1896 + ,1379 + ,1645 + ,2512 + ,1771 + ,3727 + ,4388 + ,5434 + ,1606 + ,1523 + ,1577 + ,1605 + ,1765 + ,1403 + ,2584 + ,3318 + ,1562 + ,2349 + ,3987 + ,5891 + ,1389 + ,1442 + ,1548 + ,1935 + ,1518 + ,1250 + ,1847 + ,1930 + ,2638 + ,3114 + ,4405 + ,7242 + ,1853 + ,1779 + ,2108 + ,2336 + ,1728 + ,1661 + ,2230 + ,1645 + ,2421 + ,3740 + ,4988 + ,6757 + ,1757 + ,1394 + ,1982 + ,1650 + ,1654 + ,1406 + ,1971 + ,1968 + ,2608 + ,3845 + ,4514 + ,6694 + ,1720 + ,1321 + ,1859 + ,1628 + ,1615 + ,1457 + ,1899 + ,1605 + ,2424 + ,3116 + ,4286 + ,6047 + ,1902 + ,2049 + ,1874 + ,1279 + ,1432 + ,1540 + ,2214 + ,1857 + ,2408 + ,3252 + ,3627 + ,6153 + ,1577 + ,1667 + ,1993 + ,1997 + ,1783 + ,1625 + ,2076 + ,1773 + ,2377 + ,3088 + ,4096 + ,6119 + ,1494 + ,1564 + ,1898 + ,2121 + ,1831 + ,1515 + ,2048 + ,2795 + ,1749 + ,3339 + ,4227 + ,6410 + ,1197 + ,1968 + ,1720 + ,1725 + ,1674 + ,1693 + ,2031 + ,1495 + ,2968 + ,3385 + ,3729 + ,5999 + ,1070 + ,1402 + ,1897 + ,1862 + ,1670 + ,1688 + ,2031) + ,dim=c(1 + ,187) + ,dimnames=list(c('Wijnconsumptie') + ,1:187)) > y <- array(NA,dim=c(1,187),dimnames=list(c('Wijnconsumptie'),1:187)) > 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 = 'Aantal Liter' > xlab = 'Tijd (in maanden)' > 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/1vx6e1234967675.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,] 1070 [2,] 1605 [3,] 1874 [4,] 2549 [5,] 3857 $n [1] 187 $conf [,1] [1,] 1764.929 [2,] 1983.071 $out [1] 4087 5179 4551 4524 4923 4273 5274 4388 5434 3987 5891 4405 7242 4988 6757 [16] 4514 6694 4286 6047 6153 4096 6119 4227 6410 5999 $group [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $names [1] "Wijnconsumptie" > 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/2wom61234967675.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/3pqn71234967675.tab") > > system("convert tmp/1vx6e1234967675.ps tmp/1vx6e1234967675.png") > > > proc.time() user system elapsed 0.379 0.159 0.540