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(2560 + ,727 + ,2491 + ,817 + ,2380 + ,918 + ,2291 + ,786 + ,2079 + ,803 + ,1929 + ,756 + ,1851 + ,725 + ,1607 + ,523 + ,1661 + ,538 + ,2259 + ,587 + ,1668 + ,505 + ,2011 + ,521 + ,1944 + ,498 + ,1958 + ,550 + ,1844 + ,637 + ,1868 + ,622 + ,1701 + ,668 + ,2338 + ,669 + ,2018 + ,670 + ,1302 + ,499 + ,2168 + ,539 + ,2139 + ,593 + ,1560 + ,429 + ,2093 + ,622 + ,1973 + ,533 + ,2090 + ,655 + ,2811 + ,835 + ,1984 + ,686 + ,1849 + ,706 + ,2433 + ,869 + ,2071 + ,777 + ,1855 + ,739 + ,1756 + ,637 + ,1898 + ,597 + ,1770 + ,629 + ,1969 + ,940 + ,1769 + ,444 + ,2139 + ,496 + ,3013 + ,801 + ,2061 + ,659 + ,2132 + ,767 + ,2973 + ,876 + ,2081 + ,601 + ,2257 + ,697 + ,2075 + ,745 + ,2084 + ,655 + ,1747 + ,572 + ,2092 + ,628 + ,1919 + ,650 + ,2551 + ,677 + ,2643 + ,900 + ,2153 + ,780 + ,2496 + ,896 + ,2645 + ,1092 + ,2035 + ,823 + ,2294 + ,735 + ,2205 + ,770 + ,2044 + ,915 + ,1762 + ,645 + ,1897 + ,566 + ,1821 + ,707 + ,1905 + ,785 + ,2111 + ,762 + ,1643 + ,712 + ,1956 + ,714 + ,1977 + ,823 + ,1685 + ,609 + ,1393 + ,620 + ,1574 + ,619 + ,1793 + ,638 + ,1562 + ,483 + ,1510 + ,535 + ,1675 + ,617 + ,1965 + ,698 + ,2173 + ,804 + ,2395 + ,824 + ,2197 + ,878 + ,2257 + ,1019 + ,2885 + ,974 + ,1594 + ,773 + ,1950 + ,734 + ,1772 + ,827 + ,1280 + ,804 + ,1724 + ,721 + ,1473 + ,659 + ,1461 + ,732 + ,1576 + ,839 + ,1900 + ,994 + ,1618 + ,828 + ,2303 + ,1039 + ,1994 + ,1072 + ,1575 + ,803 + ,1893 + ,1035 + ,1788 + ,922 + ,1817 + ,834 + ,3233 + ,1739 + ,727 + ,359 + ,1121 + ,513 + ,1665 + ,699 + ,1401 + ,741 + ,1415 + ,793 + ,2058 + ,877 + ,1544 + ,750 + ,1379 + ,752 + ,1402 + ,675 + ,1313 + ,682 + ,1296 + ,583 + ,1398 + ,632 + ,1288 + ,606 + ,1563 + ,645 + ,1972 + ,980 + ,1496 + ,847 + ,1481 + ,941 + ,1819 + ,1066 + ,1479 + ,936 + ,1635 + ,880 + ,1511 + ,808 + ,1547 + ,741 + ,1388 + ,780 + ,1958 + ,675 + ,1390 + ,782 + ,1597 + ,795 + ,1842 + ,873 + ,1396 + ,727 + ,1671 + ,998 + ,1385 + ,768 + ,1632 + ,714 + ,1313 + ,782 + ,1300 + ,578 + ,1431 + ,664 + ,1398 + ,560 + ,1198 + ,516 + ,1292 + ,752 + ,1434 + ,597 + ,1660 + ,716 + ,1837 + ,691 + ,1455 + ,752 + ,1315 + ,718 + ,1642 + ,737 + ,1069 + ,621 + ,1209 + ,472 + ,1586 + ,719 + ,1122 + ,497 + ,1063 + ,536 + ,1125 + ,653 + ,1414 + ,605 + ,1347 + ,637 + ,1403 + ,743 + ,1299 + ,719 + ,1547 + ,653 + ,1515 + ,675 + ,1247 + ,590 + ,1639 + ,527 + ,1296 + ,534 + ,1063 + ,463 + ,1282 + ,542 + ,1365 + ,568 + ,1268 + ,501 + ,1532 + ,678 + ,1455 + ,774 + ,1393 + ,665 + ,1515 + ,742 + ,1510 + ,715 + ,1225 + ,638 + ,1577 + ,656 + ,1417 + ,606 + ,1224 + ,498 + ,1693 + ,587 + ,1633 + ,677 + ,1639 + ,547 + ,1914 + ,871 + ,1586 + ,731 + ,1552 + ,752 + ,2081 + ,862 + ,1500 + ,619 + ,1437 + ,700 + ,1470 + ,667 + ,1849 + ,667 + ,1387 + ,650 + ,1592 + ,547 + ,1589 + ,637 + ,1798 + ,655 + ,1935 + ,703 + ,1887 + ,886 + ,2027 + ,896 + ,2080 + ,831 + ,1556 + ,741 + ,1682 + ,833 + ,1785 + ,750 + ,1869 + ,779 + ,1781 + ,655 + ,2082 + ,739 + ,2570 + ,845 + ,1862 + ,795 + ,1936 + ,1021 + ,1504 + ,726 + ,1765 + ,1045 + ,1607 + ,915 + ,1577 + ,852 + ,1493 + ,772 + ,1615 + ,729 + ,1700 + ,755 + ,1335 + ,691 + ,1523 + ,729 + ,1623 + ,702 + ,1540 + ,702 + ,1637 + ,894 + ,1524 + ,765 + ,1419 + ,753 + ,1821 + ,876 + ,1593 + ,781 + ,1357 + ,776 + ,1263 + ,606 + ,1750 + ,775 + ,1405 + ,663 + ,1393 + ,649 + ,1639 + ,821 + ,1679 + ,771 + ,1551 + ,635 + ,1744 + ,1070 + ,1429 + ,693 + ,1784 + ,779) + ,dim=c(2 + ,222) + ,dimnames=list(c('X1' + ,'X2') + ,1:222)) > y <- array(NA,dim=c(2,222),dimnames=list(c('X1','X2'),1:222)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'black' > 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: Wessa P., (2007), Notched Boxplots (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_notchedbox1.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/1a3nv1229335442.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,] 727.0 429.0 [2,] 1461.0 632.0 [3,] 1666.5 718.5 [4,] 1965.0 801.0 [5,] 2645.0 1045.0 $n [1] 222 222 $conf [,1] [,2] [1,] 1613.055 700.5788 [2,] 1719.945 736.4212 $out [1] 2811 3013 2973 2885 3233 1092 1072 1739 359 1066 1070 $group [1] 1 1 1 1 1 2 2 2 2 2 2 $names [1] "X1" "X2" > 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/2unzn1229335443.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/35qbb1229335443.tab") > > system("convert tmp/1a3nv1229335442.ps tmp/1a3nv1229335442.png") > > > proc.time() user system elapsed 0.400 0.147 0.487