R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) 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(1418 + ,210907 + ,56 + ,869 + ,120982 + ,56 + ,1530 + ,176508 + ,54 + ,2172 + ,179321 + ,89 + ,901 + ,123185 + ,40 + ,463 + ,52746 + ,25 + ,3201 + ,385534 + ,92 + ,371 + ,33170 + ,18 + ,1192 + ,101645 + ,63 + ,1583 + ,149061 + ,44 + ,1439 + ,165446 + ,33 + ,1764 + ,237213 + ,84 + ,1495 + ,173326 + ,88 + ,1373 + ,133131 + ,55 + ,2187 + ,258873 + ,60 + ,1491 + ,180083 + ,66 + ,4041 + ,324799 + ,154 + ,1706 + ,230964 + ,53 + ,2152 + ,236785 + ,119 + ,1036 + ,135473 + ,41 + ,1882 + ,202925 + ,61 + ,1929 + ,215147 + ,58 + ,2242 + ,344297 + ,75 + ,1220 + ,153935 + ,33 + ,1289 + ,132943 + ,40 + ,2515 + ,174724 + ,92 + ,2147 + ,174415 + ,100 + ,2352 + ,225548 + ,112 + ,1638 + ,223632 + ,73 + ,1222 + ,124817 + ,40 + ,1812 + ,221698 + ,45 + ,1677 + ,210767 + ,60 + ,1579 + ,170266 + ,62 + ,1731 + ,260561 + ,75 + ,807 + ,84853 + ,31 + ,2452 + ,294424 + ,77 + ,829 + ,101011 + ,34 + ,1940 + ,215641 + ,46 + ,2662 + ,325107 + ,99 + ,186 + ,7176 + ,17 + ,1499 + ,167542 + ,66 + ,865 + ,106408 + ,30 + ,1793 + ,96560 + ,76 + ,2527 + ,265769 + ,146 + ,2747 + ,269651 + ,67 + ,1324 + ,149112 + ,56 + ,2702 + ,175824 + ,107 + ,1383 + ,152871 + ,58 + ,1179 + ,111665 + ,34 + ,2099 + ,116408 + ,61 + ,4308 + ,362301 + ,119 + ,918 + ,78800 + ,42 + ,1831 + ,183167 + ,66 + ,3373 + ,277965 + ,89 + ,1713 + ,150629 + ,44 + ,1438 + ,168809 + ,66 + ,496 + ,24188 + ,24 + ,2253 + ,329267 + ,259 + ,744 + ,65029 + ,17 + ,1161 + ,101097 + ,64 + ,2352 + ,218946 + ,41 + ,2144 + ,244052 + ,68 + ,4691 + ,341570 + ,168 + ,1112 + ,103597 + ,43 + ,2694 + ,233328 + ,132 + ,1973 + ,256462 + ,105 + ,1769 + ,206161 + ,71 + ,3148 + ,311473 + ,112 + ,2474 + ,235800 + ,94 + ,2084 + ,177939 + ,82 + ,1954 + ,207176 + ,70 + ,1226 + ,196553 + ,57 + ,1389 + ,174184 + ,53 + ,1496 + ,143246 + ,103 + ,2269 + ,187559 + ,121 + ,1833 + ,187681 + ,62 + ,1268 + ,119016 + ,52 + ,1943 + ,182192 + ,52 + ,893 + ,73566 + ,32 + ,1762 + ,194979 + ,62 + ,1403 + ,167488 + ,45 + ,1425 + ,143756 + ,46 + ,1857 + ,275541 + ,63 + ,1840 + ,243199 + ,75 + ,1502 + ,182999 + ,88 + ,1441 + ,135649 + ,46 + ,1420 + ,152299 + ,53 + ,1416 + ,120221 + ,37 + ,2970 + ,346485 + ,90 + ,1317 + ,145790 + ,63 + ,1644 + ,193339 + ,78 + ,870 + ,80953 + ,25 + ,1654 + ,122774 + ,45 + ,1054 + ,130585 + ,46 + ,937 + ,112611 + ,41 + ,3004 + ,286468 + ,144 + ,2008 + ,241066 + ,82 + ,2547 + ,148446 + ,91 + ,1885 + ,204713 + ,71 + ,1626 + ,182079 + ,63 + ,1468 + ,140344 + ,53 + ,2445 + ,220516 + ,62 + ,1964 + ,243060 + ,63 + ,1381 + ,162765 + ,32 + ,1369 + ,182613 + ,39 + ,1659 + ,232138 + ,62 + ,2888 + ,265318 + ,117 + ,1290 + ,85574 + ,34 + ,2845 + ,310839 + ,92 + ,1982 + ,225060 + ,93 + ,1904 + ,232317 + ,54 + ,1391 + ,144966 + ,144 + ,602 + ,43287 + ,14 + ,1743 + ,155754 + ,61 + ,1559 + ,164709 + ,109 + ,2014 + ,201940 + ,38 + ,2143 + ,235454 + ,73 + ,2146 + ,220801 + ,75 + ,874 + ,99466 + ,50 + ,1590 + ,92661 + ,61 + ,1590 + ,133328 + ,55 + ,1210 + ,61361 + ,77 + ,2072 + ,125930 + ,75 + ,1281 + ,100750 + ,72 + ,1401 + ,224549 + ,50 + ,834 + ,82316 + ,32 + ,1105 + ,102010 + ,53 + ,1272 + ,101523 + ,42 + ,1944 + ,243511 + ,71 + ,391 + ,22938 + ,10 + ,761 + ,41566 + ,35 + ,1605 + ,152474 + ,65 + ,530 + ,61857 + ,25 + ,1988 + ,99923 + ,66 + ,1386 + ,132487 + ,41 + ,2395 + ,317394 + ,86 + ,387 + ,21054 + ,16 + ,1742 + ,209641 + ,42 + ,620 + ,22648 + ,19 + ,449 + ,31414 + ,19 + ,800 + ,46698 + ,45 + ,1684 + ,131698 + ,65 + ,1050 + ,91735 + ,35 + ,2699 + ,244749 + ,95 + ,1606 + ,184510 + ,49 + ,1502 + ,79863 + ,37 + ,1204 + ,128423 + ,64 + ,1138 + ,97839 + ,38 + ,568 + ,38214 + ,34 + ,1459 + ,151101 + ,32 + ,2158 + ,272458 + ,65 + ,1111 + ,172494 + ,52 + ,1421 + ,108043 + ,62 + ,2833 + ,328107 + ,65 + ,1955 + ,250579 + ,83 + ,2922 + ,351067 + ,95 + ,1002 + ,158015 + ,29 + ,1060 + ,98866 + ,18 + ,956 + ,85439 + ,33 + ,2186 + ,229242 + ,247 + ,3604 + ,351619 + ,139 + ,1035 + ,84207 + ,29 + ,1417 + ,120445 + ,118 + ,3261 + ,324598 + ,110 + ,1587 + ,131069 + ,67 + ,1424 + ,204271 + ,42 + ,1701 + ,165543 + ,65 + ,1249 + ,141722 + ,94 + ,946 + ,116048 + ,64 + ,1926 + ,250047 + ,81 + ,3352 + ,299775 + ,95 + ,1641 + ,195838 + ,67 + ,2035 + ,173260 + ,63 + ,2312 + ,254488 + ,83 + ,1369 + ,104389 + ,45 + ,1577 + ,136084 + ,30 + ,2201 + ,199476 + ,70 + ,961 + ,92499 + ,32 + ,1900 + ,224330 + ,83 + ,1254 + ,135781 + ,31 + ,1335 + ,74408 + ,67 + ,1597 + ,81240 + ,66 + ,207 + ,14688 + ,10 + ,1645 + ,181633 + ,70 + ,2429 + ,271856 + ,103 + ,151 + ,7199 + ,5 + ,474 + ,46660 + ,20 + ,141 + ,17547 + ,5 + ,1639 + ,133368 + ,36 + ,872 + ,95227 + ,34 + ,1318 + ,152601 + ,48 + ,1018 + ,98146 + ,40 + ,1383 + ,79619 + ,43 + ,1314 + ,59194 + ,31 + ,1335 + ,139942 + ,42 + ,1403 + ,118612 + ,46 + ,910 + ,72880 + ,33 + ,616 + ,65475 + ,18 + ,1407 + ,99643 + ,55 + ,771 + ,71965 + ,35 + ,766 + ,77272 + ,59 + ,473 + ,49289 + ,19 + ,1376 + ,135131 + ,66 + ,1232 + ,108446 + ,60 + ,1521 + ,89746 + ,36 + ,572 + ,44296 + ,25 + ,1059 + ,77648 + ,47 + ,1544 + ,181528 + ,54 + ,1230 + ,134019 + ,53 + ,1206 + ,124064 + ,40 + ,1205 + ,92630 + ,40 + ,1255 + ,121848 + ,39 + ,613 + ,52915 + ,14 + ,721 + ,81872 + ,45 + ,1109 + ,58981 + ,36 + ,740 + ,53515 + ,28 + ,1126 + ,60812 + ,44 + ,728 + ,56375 + ,30 + ,689 + ,65490 + ,22 + ,592 + ,80949 + ,17 + ,995 + ,76302 + ,31 + ,1613 + ,104011 + ,55 + ,2048 + ,98104 + ,54 + ,705 + ,67989 + ,21 + ,301 + ,30989 + ,14 + ,1803 + ,135458 + ,81 + ,799 + ,73504 + ,35 + ,861 + ,63123 + ,43 + ,1186 + ,61254 + ,46 + ,1451 + ,74914 + ,30 + ,628 + ,31774 + ,23 + ,1161 + ,81437 + ,38 + ,1463 + ,87186 + ,54 + ,742 + ,50090 + ,20 + ,979 + ,65745 + ,53 + ,675 + ,56653 + ,45 + ,1241 + ,158399 + ,39 + ,676 + ,46455 + ,20 + ,1049 + ,73624 + ,24 + ,620 + ,38395 + ,31 + ,1081 + ,91899 + ,35 + ,1688 + ,139526 + ,151 + ,736 + ,52164 + ,52 + ,617 + ,51567 + ,30 + ,812 + ,70551 + ,31 + ,1051 + ,84856 + ,29 + ,1656 + ,102538 + ,57 + ,705 + ,86678 + ,40 + ,945 + ,85709 + ,44 + ,554 + ,34662 + ,25 + ,1597 + ,150580 + ,77 + ,982 + ,99611 + ,35 + ,222 + ,19349 + ,11 + ,1212 + ,99373 + ,63 + ,1143 + ,86230 + ,44 + ,435 + ,30837 + ,19 + ,532 + ,31706 + ,13 + ,882 + ,89806 + ,42 + ,608 + ,62088 + ,38 + ,459 + ,40151 + ,29 + ,578 + ,27634 + ,20 + ,826 + ,76990 + ,27 + ,509 + ,37460 + ,20 + ,717 + ,54157 + ,19 + ,637 + ,49862 + ,37 + ,857 + ,84337 + ,26 + ,830 + ,64175 + ,42 + ,652 + ,59382 + ,49 + ,707 + ,119308 + ,30 + ,954 + ,76702 + ,49 + ,1461 + ,103425 + ,67 + ,672 + ,70344 + ,28 + ,778 + ,43410 + ,19 + ,1141 + ,104838 + ,49 + ,680 + ,62215 + ,27 + ,1090 + ,69304 + ,30 + ,616 + ,53117 + ,22 + ,285 + ,19764 + ,12 + ,1145 + ,86680 + ,31 + ,733 + ,84105 + ,20 + ,888 + ,77945 + ,20 + ,849 + ,89113 + ,39 + ,1182 + ,91005 + ,29 + ,528 + ,40248 + ,16 + ,642 + ,64187 + ,27 + ,947 + ,50857 + ,21 + ,819 + ,56613 + ,19 + ,757 + ,62792 + ,35 + ,894 + ,72535 + ,14) + ,dim=c(3 + ,289) + ,dimnames=list(c('pageviews' + ,'time_in_rfc' + ,'logins') + ,1:289)) > y <- array(NA,dim=c(3,289),dimnames=list(c('pageviews','time_in_rfc','logins'),1:289)) > 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' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Notched Boxplots (v1.0.6) 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 > # > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1gi5r1356046862.ps",horizontal=F,onefile=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] [1,] 141 7176 5 [2,] 869 74914 32 [3,] 1335 120982 47 [4,] 1793 187559 67 [5,] 3148 351619 119 $n [1] 289 289 289 $conf [,1] [,2] [,3] [1,] 1249.122 110512.6 43.74706 [2,] 1420.878 131451.4 50.25294 $out [1] 3201 4041 4308 3373 4691 3604 3261 3352 385534 362301 [11] 154 146 259 168 132 121 144 144 247 139 [21] 151 $group [1] 1 1 1 1 1 1 1 1 2 2 3 3 3 3 3 3 3 3 3 3 3 $names [1] "pageviews" "time_in_rfc" "logins" > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/2d2491356046862.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/wessaorg/rcomp/tmp/318251356046862.tab") > > try(system("convert tmp/1gi5r1356046862.ps tmp/1gi5r1356046862.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.210 0.175 1.362