R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(267413 + ,294912 + ,21.4 + ,26.9 + ,267366 + ,293488 + ,26.4 + ,27.8 + ,264777 + ,290555 + ,26.4 + ,28.7 + ,258863 + ,284736 + ,29.4 + ,30.5 + ,254844 + ,281818 + ,34.4 + ,31.8 + ,254868 + ,287854 + ,24.4 + ,31.4 + ,277267 + ,316263 + ,26.4 + ,34.8 + ,285351 + ,325412 + ,25.4 + ,32.2 + ,286602 + ,326011 + ,31.4 + ,33 + ,283042 + ,328282 + ,27.4 + ,32.4 + ,276687 + ,317480 + ,27.4 + ,30.5 + ,277915 + ,317539 + ,29.4 + ,28.6 + ,277128 + ,313737 + ,32.4 + ,30 + ,277103 + ,312276 + ,26.4 + ,28.2 + ,275037 + ,309391 + ,22.4 + ,27.6 + ,270150 + ,302950 + ,19.4 + ,24.9 + ,267140 + ,300316 + ,21.4 + ,23.8 + ,264993 + ,304035 + ,23.4 + ,24.3 + ,287259 + ,333476 + ,23.4 + ,23.6 + ,291186 + ,337698 + ,25.4 + ,24.2 + ,292300 + ,335932 + ,28.4 + ,28.1 + ,288186 + ,323931 + ,27.4 + ,30.1 + ,281477 + ,313927 + ,21.4 + ,31.1 + ,282656 + ,314485 + ,17.4 + ,32 + ,280190 + ,313218 + ,24.4 + ,32.4 + ,280408 + ,309664 + ,26.4 + ,34 + ,276836 + ,302963 + ,22.4 + ,35.1 + ,275216 + ,298989 + ,14.4 + ,37.1 + ,274352 + ,298423 + ,18.4 + ,37.3 + ,271311 + ,301631 + ,25.4 + ,38.1 + ,289802 + ,329765 + ,29.4 + ,39.5 + ,290726 + ,335083 + ,26.4 + ,38.3 + ,292300 + ,327616 + ,26.4 + ,37.3 + ,278506 + ,309119 + ,20.4 + ,38.7 + ,269826 + ,295916 + ,26.4 + ,37.5 + ,265861 + ,291413 + ,29.4 + ,38.7 + ,269034 + ,291542 + ,33.4 + ,37.9 + ,264176 + ,284678 + ,32.4 + ,36.6 + ,255198 + ,276475 + ,35.4 + ,35.5 + ,253353 + ,272566 + ,34.4 + ,37.6 + ,246057 + ,264981 + ,36.4 + ,38.6 + ,235372 + ,263290 + ,32.4 + ,40.3 + ,258556 + ,296806 + ,34.4 + ,39 + ,260993 + ,303598 + ,31.4 + ,36.8 + ,254663 + ,286994 + ,27.4 + ,36.5 + ,250643 + ,276427 + ,27.4 + ,34.1 + ,243422 + ,266424 + ,30.4 + ,34.2 + ,247105 + ,267153 + ,32.4 + ,31.9 + ,248541 + ,268381 + ,32.4 + ,33.7 + ,245039 + ,262522 + ,27.4 + ,33.5 + ,237080 + ,255542 + ,31.4 + ,33.8 + ,237085 + ,253158 + ,29.4 + ,29.9 + ,225554 + ,243803 + ,27.4 + ,32.3 + ,226839 + ,250741 + ,25.4 + ,30.5 + ,247934 + ,280445 + ,26.4 + ,28.5 + ,248333 + ,285257 + ,23.4 + ,29 + ,246969 + ,270976 + ,18.4 + ,23.8 + ,245098 + ,261076 + ,22.4 + ,17.9 + ,246263 + ,255603 + ,17.4 + ,9.9 + ,255765 + ,260376 + ,17.4 + ,3 + ,264319 + ,263903 + ,11.4 + ,4.2 + ,268347 + ,264291 + ,9.4 + ,0.4 + ,273046 + ,263276 + ,6.4 + ,0 + ,273963 + ,262572 + ,0 + ,2.4 + ,267430 + ,256167 + ,7.8 + ,4.2 + ,271993 + ,264221 + ,7.9 + ,8.2 + ,292710 + ,293860 + ,12 + ,9 + ,295881 + ,300713 + ,16.9 + ,13.6 + ,293299 + ,287224 + ,12.3 + ,14) + ,dim=c(4 + ,69) + ,dimnames=list(c('Totwm' + ,'Totwv' + ,'vower' + ,'conind') + ,1:69)) > y <- array(NA,dim=c(4,69),dimnames=list(c('Totwm','Totwv','vower','conind'),1:69)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > main = 'Kendall tau Correlation Plot' > #'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!) > 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='kendall') + 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/www/html/rcomp/tmp/15a5t1257977385.ps",horizontal=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/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,'Kendall tau rank correlations for all pairs of data series',3,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'pair',1,TRUE) > a<-table.element(a,'tau',1,TRUE) > a<-table.element(a,'p-value',1,TRUE) > a<-table.row.end(a) > n <- length(y[,1]) > n [1] 4 > cor.test(y[1,],y[2,],method='kendall') Kendall's rank correlation tau data: y[1, ] and y[2, ] z = 8.0646, p-value = 6.661e-16 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.6638244 > for (i in 1:(n-1)) + { + for (j in (i+1):n) + { + a<-table.row.start(a) + dum <- paste('tau(',dimnames(t(x))[[2]][i]) + dum <- paste(dum,',') + dum <- paste(dum,dimnames(t(x))[[2]][j]) + dum <- paste(dum,')') + a<-table.element(a,dum,header=TRUE) + r <- cor.test(y[i,],y[j,],method='kendall') + a<-table.element(a,r$estimate) + a<-table.element(a,r$p.value) + a<-table.row.end(a) + } + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/2rfoz1257977385.tab") > > system("convert tmp/15a5t1257977385.ps tmp/15a5t1257977385.png") > > > proc.time() user system elapsed 0.501 0.218 0.745