R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(162687 + ,48 + ,21 + ,82 + ,73 + ,20465 + ,6200 + ,23975 + ,39 + ,37 + ,201906 + ,58 + ,20 + ,80 + ,56 + ,33629 + ,10265 + ,85634 + ,46 + ,43 + ,7215 + ,0 + ,0 + ,0 + ,0 + ,1423 + ,603 + ,1929 + ,0 + ,0 + ,159169 + ,72 + ,29 + ,90 + ,69 + ,25629 + ,8874 + ,36294 + ,54 + ,54 + ,257045 + ,83 + ,31 + ,124 + ,116 + ,54002 + ,20323 + ,72255 + ,93 + ,86 + ,538237 + ,137 + ,36 + ,140 + ,138 + ,151036 + ,26258 + ,189748 + ,198 + ,181 + ,191582 + ,65 + ,26 + ,100 + ,76 + ,33287 + ,10165 + ,61834 + ,42 + ,42 + ,211165 + ,96 + ,35 + ,132 + ,119 + ,31172 + ,8247 + ,68167 + ,59 + ,59 + ,177020 + ,62 + ,30 + ,109 + ,50 + ,28113 + ,8683 + ,38462 + ,49 + ,46 + ,330887 + ,72 + ,27 + ,108 + ,81 + ,57803 + ,16957 + ,101219 + ,83 + ,77 + ,122275 + ,50 + ,24 + ,63 + ,58 + ,49830 + ,8058 + ,43270 + ,49 + ,49 + ,203938 + ,88 + ,30 + ,118 + ,91 + ,52143 + ,20488 + ,76183 + ,83 + ,79 + ,119300 + ,68 + ,22 + ,71 + ,41 + ,21055 + ,7945 + ,31476 + ,39 + ,37 + ,220751 + ,79 + ,28 + ,112 + ,100 + ,47007 + ,13448 + ,62157 + ,93 + ,92 + ,174005 + ,56 + ,18 + ,63 + ,61 + ,28735 + ,5389 + ,46261 + ,31 + ,31 + ,156326 + ,54 + ,22 + ,86 + ,74 + ,59147 + ,6185 + ,50063 + ,29 + ,28 + ,145178 + ,81 + ,37 + ,148 + ,147 + ,78950 + ,24369 + ,64483 + ,104 + ,103 + ,90025 + ,13 + ,15 + ,54 + ,45 + ,13497 + ,70 + ,2341 + ,2 + ,2 + ,179935 + ,80 + ,34 + ,134 + ,110 + ,46154 + ,17327 + ,48149 + ,46 + ,48 + ,47066 + ,19 + ,18 + ,57 + ,41 + ,53249 + ,3878 + ,12743 + ,27 + ,25 + ,109572 + ,33 + ,15 + ,59 + ,37 + ,10726 + ,3149 + ,18743 + ,16 + ,16 + ,241285 + ,99 + ,30 + ,113 + ,84 + ,83700 + ,20517 + ,97057 + ,108 + ,106 + ,200429 + ,38 + ,25 + ,96 + ,67 + ,40400 + ,2570 + ,17675 + ,36 + ,35 + ,149513 + ,59 + ,34 + ,96 + ,69 + ,33797 + ,5162 + ,33106 + ,33 + ,33 + ,159763 + ,54 + ,21 + ,78 + ,58 + ,36205 + ,5299 + ,53311 + ,46 + ,45 + ,207078 + ,63 + ,21 + ,80 + ,60 + ,30165 + ,7233 + ,42754 + ,65 + ,64 + ,217028 + ,66 + ,25 + ,93 + ,88 + ,58534 + ,15657 + ,59056 + ,80 + ,73 + ,201536 + ,90 + ,31 + ,109 + ,75 + ,44663 + ,15329 + ,101621 + ,81 + ,78 + ,408684 + ,75 + ,31 + ,115 + ,98 + ,92556 + ,14881 + ,118120 + ,69 + ,63 + ,217892 + ,61 + ,20 + ,79 + ,67 + ,40078 + ,16318 + ,79572 + ,69 + ,69 + ,182286 + ,61 + ,28 + ,103 + ,84 + ,34711 + ,9556 + ,42744 + ,37 + ,36 + ,200604 + ,72 + ,22 + ,71 + ,62 + ,31076 + ,10462 + ,65931 + ,45 + ,41 + ,137978 + ,53 + ,17 + ,66 + ,35 + ,74608 + ,7192 + ,38575 + ,62 + ,59 + ,265732 + ,135 + ,25 + ,100 + ,74 + ,58092 + ,4362 + ,28795 + ,33 + ,33 + ,236546 + ,73 + ,25 + ,100 + ,93 + ,42009 + ,14349 + ,94440 + ,77 + ,76 + ,230761 + ,54 + ,31 + ,121 + ,87 + ,36022 + ,10881 + ,38229 + ,34 + ,27 + ,132807 + ,54 + ,14 + ,51 + ,39 + ,23333 + ,8022 + ,31972 + ,44 + ,44 + ,161703 + ,46 + ,35 + ,119 + ,101 + ,53349 + ,13073 + ,40071 + ,43 + ,43 + ,253254 + ,83 + ,34 + ,136 + ,135 + ,92596 + ,26641 + ,132480 + ,117 + ,104 + ,269329 + ,106 + ,22 + ,84 + ,76 + ,49598 + ,14426 + ,62797 + ,125 + ,120 + ,161273 + ,44 + ,34 + ,136 + ,118 + ,44093 + ,15604 + ,40429 + ,49 + ,44 + ,107181 + ,27 + ,23 + ,84 + ,76 + ,84205 + ,9184 + ,45545 + ,76 + ,71 + ,213097 + ,73 + ,24 + ,92 + ,65 + ,63369 + ,5989 + ,57568 + ,81 + ,78 + ,139667 + ,71 + ,26 + ,103 + ,97 + ,60132 + ,11270 + ,39019 + ,111 + ,106 + ,171124 + ,44 + ,23 + ,85 + ,70 + ,37403 + ,13958 + ,53866 + ,61 + ,61 + ,81407 + ,23 + ,35 + ,106 + ,63 + ,24460 + ,7162 + ,38345 + ,56 + ,53 + ,250921 + ,78 + ,24 + ,96 + ,96 + ,46456 + ,13275 + ,50210 + ,54 + ,51 + ,239807 + ,60 + ,31 + ,124 + ,112 + ,66616 + ,21224 + ,80947 + ,47 + ,46 + ,172743 + ,73 + ,30 + ,106 + ,82 + ,41554 + ,10615 + ,43461 + ,55 + ,55 + ,48188 + ,12 + ,22 + ,82 + ,39 + ,22346 + ,2102 + ,14812 + ,14 + ,14 + ,169355 + ,104 + ,23 + ,87 + ,69 + ,30874 + ,12396 + ,37819 + ,44 + ,44 + ,335398 + ,95 + ,27 + ,97 + ,93 + ,68701 + ,18717 + ,102738 + ,115 + ,113 + ,244729 + ,57 + ,30 + ,107 + ,76 + ,35728 + ,9724 + ,54509 + ,57 + ,55 + ,200137 + ,67 + ,33 + ,126 + ,117 + ,29010 + ,9863 + ,62956 + ,48 + ,46 + ,159913 + ,44 + ,12 + ,43 + ,31 + ,23110 + ,8374 + ,55411 + ,40 + ,39 + ,223936 + ,53 + ,26 + ,96 + ,65 + ,38844 + ,8030 + ,50611 + ,51 + ,51 + ,101694 + ,26 + ,26 + ,100 + ,78 + ,27084 + ,7509 + ,26692 + ,32 + ,31 + ,157258 + ,67 + ,23 + ,91 + ,87 + ,35139 + ,14146 + ,60056 + ,36 + ,36 + ,211586 + ,36 + ,38 + ,136 + ,85 + ,57476 + ,7768 + ,25155 + ,47 + ,47 + ,181076 + ,56 + ,32 + ,128 + ,119 + ,33277 + ,13823 + ,42840 + ,51 + ,53 + ,158024 + ,55 + ,22 + ,87 + ,68 + ,31141 + ,7230 + ,39358 + ,37 + ,38 + ,141491 + ,54 + ,22 + ,74 + ,60 + ,61281 + ,10170 + ,47241 + ,52 + ,52 + ,130108 + ,61 + ,26 + ,96 + ,67 + ,25820 + ,7573 + ,49611 + ,42 + ,37 + ,166420 + ,27 + ,28 + ,102 + ,94 + ,23284 + ,5753 + ,41833 + ,11 + ,11 + ,125440 + ,58 + ,33 + ,122 + ,100 + ,35378 + ,9791 + ,48930 + ,47 + ,45 + ,195043 + ,76 + ,36 + ,144 + ,135 + ,74990 + ,19365 + ,110600 + ,59 + ,59 + ,138708 + ,93 + ,25 + ,90 + ,71 + ,29653 + ,9422 + ,52235 + ,82 + ,82 + ,116552 + ,59 + ,25 + ,97 + ,78 + ,64622 + ,12310 + ,53986 + ,49 + ,49 + ,31970 + ,5 + ,21 + ,78 + ,42 + ,4157 + ,1283 + ,4105 + ,6 + ,6 + ,277661 + ,58 + ,19 + ,72 + ,42 + ,29245 + ,6372 + ,59331 + ,83 + ,81 + ,167284 + ,47 + ,14 + ,53 + ,16 + ,50008 + ,5413 + ,47796 + ,56 + ,56 + ,135926 + ,88 + ,30 + ,120 + ,86 + ,52338 + ,10837 + ,38302 + ,114 + ,105 + ,124014 + ,53 + ,24 + ,66 + ,48 + ,13310 + ,3394 + ,14063 + ,46 + ,46 + ,171518 + ,81 + ,39 + ,150 + ,131 + ,92901 + ,12964 + ,54414 + ,46 + ,46 + ,108980 + ,35 + ,32 + ,117 + ,91 + ,10956 + ,3495 + ,9903 + ,2 + ,2 + ,183471 + ,102 + ,28 + ,123 + ,102 + ,34241 + ,11580 + ,53987 + ,51 + ,51 + ,159966 + ,71 + ,29 + ,114 + ,91 + ,75043 + ,9970 + ,88937 + ,96 + ,95 + ,103640 + ,29 + ,21 + ,75 + ,46 + ,21152 + ,4911 + ,21928 + ,20 + ,18 + ,84971 + ,34 + ,31 + ,114 + ,60 + ,42249 + ,10138 + ,29487 + ,57 + ,55 + ,88882 + ,54 + ,26 + ,94 + ,69 + ,42005 + ,14697 + ,35334 + ,49 + ,48 + ,304603 + ,49 + ,29 + ,116 + ,95 + ,41152 + ,8464 + ,57596 + ,51 + ,48 + ,75101 + ,30 + ,23 + ,86 + ,17 + ,14399 + ,4204 + ,29750 + ,40 + ,39 + ,145043 + ,57 + ,25 + ,90 + ,61 + ,28263 + ,10226 + ,41029 + ,40 + ,40 + ,95827 + ,54 + ,22 + ,87 + ,55 + ,17215 + ,3456 + ,12416 + ,36 + ,36 + ,173931 + ,38 + ,26 + ,99 + ,55 + ,48140 + ,8895 + ,51158 + ,64 + ,60 + ,246034 + ,63 + ,33 + ,132 + ,124 + ,62897 + ,22557 + ,79935 + ,117 + ,114 + ,115367 + ,58 + ,24 + ,96 + ,73 + ,22883 + ,6900 + ,26552 + ,40 + ,39 + ,125839 + ,49 + ,24 + ,91 + ,73 + ,41622 + ,8620 + ,25807 + ,46 + ,45 + ,164078 + ,46 + ,21 + ,77 + ,67 + ,40715 + ,7820 + ,50620 + ,61 + ,59 + ,158931 + ,51 + ,28 + ,104 + ,66 + ,65897 + ,12112 + ,61467 + ,59 + ,59 + ,190348 + ,90 + ,28 + ,100 + ,77 + ,76542 + ,13178 + ,65292 + ,94 + ,93 + ,155226 + ,45 + ,25 + ,94 + ,83 + ,37477 + ,7028 + ,55516 + ,36 + ,35 + ,146159 + ,28 + ,15 + ,60 + ,55 + ,53216 + ,6616 + ,42006 + ,51 + ,47 + ,62641 + ,26 + ,13 + ,46 + ,27 + ,40911 + ,9570 + ,26273 + ,39 + ,36 + ,245267 + ,52 + ,36 + ,135 + ,115 + ,57021 + ,14612 + ,90248 + ,62 + ,59 + ,199841 + ,96 + ,27 + ,99 + ,85 + ,73116 + ,11219 + ,61476 + ,79 + ,79 + ,19349 + ,13 + ,1 + ,2 + ,0 + ,3895 + ,786 + ,9604 + ,14 + ,14 + ,247280 + ,43 + ,24 + ,96 + ,83 + ,46609 + ,11252 + ,45108 + ,45 + ,42 + ,164457 + ,42 + ,31 + ,109 + ,90 + ,29351 + ,9289 + ,47232 + ,43 + ,41 + ,72128 + ,30 + ,4 + ,15 + ,4 + ,2325 + ,593 + ,3439 + ,8 + ,8 + ,104253 + ,59 + ,21 + ,68 + ,60 + ,31747 + ,6562 + ,30553 + ,41 + ,41 + ,151090 + ,73 + ,27 + ,102 + ,74 + ,32665 + ,8208 + ,24751 + ,25 + ,24 + ,147990 + ,40 + ,26 + ,93 + ,55 + ,19249 + ,7488 + ,34458 + ,22 + ,22 + ,87448 + ,36 + ,12 + ,46 + ,24 + ,15292 + ,4574 + ,24649 + ,18 + ,18 + ,27676 + ,2 + ,16 + ,59 + ,17 + ,5842 + ,522 + ,2342 + ,3 + ,1 + ,170326 + ,103 + ,29 + ,116 + ,105 + ,33994 + ,12840 + ,52739 + ,54 + ,53 + ,132148 + ,30 + ,26 + ,29 + ,20 + ,13018 + ,1350 + ,6245 + ,6 + ,6 + ,95778 + ,46 + ,25 + ,91 + ,51 + ,98177 + ,10623 + ,35381 + ,50 + ,49 + ,109001 + ,25 + ,21 + ,76 + ,76 + ,37941 + ,5322 + ,19595 + ,33 + ,33 + ,158833 + ,59 + ,24 + ,86 + ,61 + ,31032 + ,7987 + ,50848 + ,54 + ,50 + ,150013 + ,60 + ,21 + ,84 + ,70 + ,32683 + ,10566 + ,39443 + ,63 + ,64 + ,89887 + ,36 + ,21 + ,65 + ,38 + ,34545 + ,1900 + ,27023 + ,56 + ,53 + ,3616 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,213786 + ,51 + ,23 + ,84 + ,81 + ,27525 + ,10698 + ,61022 + ,49 + ,48 + ,167411 + ,79 + ,33 + ,114 + ,78 + ,66856 + ,14884 + ,63528 + ,90 + ,90 + ,177948 + ,30 + ,32 + ,132 + ,76 + ,28549 + ,6852 + ,34835 + ,51 + ,46 + ,136061 + ,43 + ,23 + ,92 + ,89 + ,38610 + ,6873 + ,37172 + ,29 + ,29 + ,43410 + ,7 + ,1 + ,3 + ,3 + ,2781 + ,4 + ,13 + ,1 + ,1 + ,184277 + ,80 + ,29 + ,109 + ,87 + ,41211 + ,9188 + ,62548 + ,68 + ,64 + ,109873 + ,32 + ,20 + ,81 + ,55 + ,22698 + ,5141 + ,31334 + ,29 + ,29 + ,151230 + ,84 + ,33 + ,121 + ,73 + ,41194 + ,4260 + ,20839 + ,27 + ,27 + ,60493 + ,3 + ,12 + ,48 + ,32 + ,32689 + ,443 + ,5084 + ,4 + ,4 + ,19764 + ,10 + ,2 + ,8 + ,4 + ,5752 + ,2416 + ,9927 + ,10 + ,10 + ,177559 + ,47 + ,21 + ,80 + ,70 + ,26757 + ,9831 + ,53229 + ,47 + ,47 + ,154169 + ,44 + ,28 + ,107 + ,102 + ,22527 + ,5953 + ,29877 + ,44 + ,44 + ,164249 + ,54 + ,35 + ,140 + ,109 + ,44810 + ,9435 + ,37310 + ,53 + ,51 + ,11796 + ,1 + ,2 + ,8 + ,1 + ,0 + ,0 + ,0 + ,0 + ,0 + ,151322 + ,46 + ,18 + ,56 + ,39 + ,100674 + ,7642 + ,50067 + ,40 + ,38 + ,6836 + ,0 + ,1 + ,4 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,174712 + ,51 + ,21 + ,70 + ,45 + ,57786 + ,6837 + ,47708 + ,57 + ,57 + ,40248 + ,8 + ,4 + ,14 + ,7 + ,5444 + ,775 + ,6012 + ,6 + ,6 + ,127628 + ,38 + ,29 + ,104 + ,86 + ,28470 + ,8191 + ,27749 + ,24 + ,22 + ,88837 + ,21 + ,26 + ,89 + ,52 + ,61849 + ,1661 + ,47555 + ,34 + ,34 + ,9056 + ,0 + ,4 + ,12 + ,1 + ,2179 + ,548 + ,1336 + ,10 + ,10 + ,97191 + ,26 + ,19 + ,60 + ,49 + ,8019 + ,3080 + ,11017 + ,16 + ,16 + ,149554 + ,53 + ,23 + ,88 + ,75 + ,39644 + ,13400 + ,55184 + ,93 + ,93 + ,111408 + ,17 + ,22 + ,88 + ,56 + ,23494 + ,8181 + ,43485 + ,28 + ,22) + ,dim=c(10 + ,137) + ,dimnames=list(c('TiRFC' + ,'NoBC' + ,'NoRC' + ,'FMPR' + ,'FMPR+' + ,'Noc' + ,'NoR' + ,'NoS' + ,'NoiH' + ,'NoiB') + ,1:137)) > y <- array(NA,dim=c(10,137),dimnames=list(c('TiRFC','NoBC','NoRC','FMPR','FMPR+','Noc','NoR','NoS','NoiH','NoiB'),1:137)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'pearson' > main = 'Correlation Matrix' > panel.tau <- function(x, y, digits=2, prefix='', cex.cor) + { + usr <- par('usr'); on.exit(par(usr)) + par(usr = c(0, 1, 0, 1)) + rr <- cor.test(x, y, method=par1) + r <- round(rr$p.value,2) + txt <- format(c(r, 0.123456789), digits=digits)[1] + txt <- paste(prefix, txt, sep='') + if(missing(cex.cor)) cex <- 0.5/strwidth(txt) + text(0.5, 0.5, txt, cex = cex) + } > panel.hist <- function(x, ...) + { + usr <- par('usr'); on.exit(par(usr)) + par(usr = c(usr[1:2], 0, 1.5) ) + h <- hist(x, plot = FALSE) + breaks <- h$breaks; nB <- length(breaks) + y <- h$counts; y <- y/max(y) + rect(breaks[-nB], 0, breaks[-1], y, col='grey', ...) + } > postscript(file="/var/wessaorg/rcomp/tmp/1k5nb1324583513.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > pairs(t(y),diag.panel=panel.hist, upper.panel=panel.smooth, lower.panel=panel.tau, main=main) > 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") > > n <- length(y[,1]) > n [1] 10 > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,paste('Correlations for all pairs of data series (method=',par1,')',sep=''),n+1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,' ',header=TRUE) > for (i in 1:n) { + a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) + } > a<-table.row.end(a) > for (i in 1:n) { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],header=TRUE) + for (j in 1:n) { + r <- cor.test(y[i,],y[j,],method=par1) + a<-table.element(a,round(r$estimate,3)) + } + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/2v4k91324583513.tab") > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Correlations for all pairs of data series with p-values',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'pair',1,TRUE) > a<-table.element(a,'Pearson r',1,TRUE) > a<-table.element(a,'Spearman rho',1,TRUE) > a<-table.element(a,'Kendall tau',1,TRUE) > a<-table.row.end(a) > cor.test(y[1,],y[2,],method=par1) Pearson's product-moment correlation data: y[1, ] and y[2, ] t = 12.4223, df = 135, p-value < 2.2e-16 alternative hypothesis: true correlation is not equal to 0 95 percent confidence interval: 0.6411441 0.8000475 sample estimates: cor 0.7303276 > for (i in 1:(n-1)) + { + for (j in (i+1):n) + { + a<-table.row.start(a) + dum <- paste(dimnames(t(x))[[2]][i],';',dimnames(t(x))[[2]][j],sep='') + a<-table.element(a,dum,header=TRUE) + rp <- cor.test(y[i,],y[j,],method='pearson') + a<-table.element(a,round(rp$estimate,4)) + rs <- cor.test(y[i,],y[j,],method='spearman') + a<-table.element(a,round(rs$estimate,4)) + rk <- cor.test(y[i,],y[j,],method='kendall') + a<-table.element(a,round(rk$estimate,4)) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'p-value',header=T) + a<-table.element(a,paste('(',round(rp$p.value,4),')',sep='')) + a<-table.element(a,paste('(',round(rs$p.value,4),')',sep='')) + a<-table.element(a,paste('(',round(rk$p.value,4),')',sep='')) + a<-table.row.end(a) + } + } There were 45 warnings (use warnings() to see them) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/3jmwp1324583513.tab") > > try(system("convert tmp/1k5nb1324583513.ps tmp/1k5nb1324583513.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.145 0.120 2.259