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(103.8 + ,122.5 + ,80.2 + ,19 + ,103.5 + ,122.4 + ,74.8 + ,18 + ,104.1 + ,121.9 + ,77.8 + ,19 + ,101.9 + ,122.2 + ,73 + ,19 + ,102 + ,123.7 + ,72 + ,22 + ,100.7 + ,122.6 + ,75.8 + ,23 + ,99 + ,115.7 + ,72.6 + ,20 + ,96.5 + ,116.1 + ,71.9 + ,14 + ,101.8 + ,120.5 + ,74.8 + ,14 + ,100.5 + ,122.6 + ,72.9 + ,14 + ,103.3 + ,119.9 + ,72.9 + ,15 + ,102.3 + ,120.7 + ,79.9 + ,11 + ,100.4 + ,120.2 + ,74 + ,17 + ,103 + ,122.1 + ,76 + ,16 + ,99 + ,119.3 + ,69.6 + ,20 + ,104.8 + ,121.7 + ,77.3 + ,24 + ,104.5 + ,113.5 + ,75.2 + ,23 + ,104.8 + ,123.7 + ,75.8 + ,20 + ,103.8 + ,123.4 + ,77.6 + ,21 + ,106.3 + ,126.4 + ,76.7 + ,19 + ,105.2 + ,124.1 + ,77 + ,23 + ,108.2 + ,125.6 + ,77.9 + ,23 + ,106.2 + ,124.8 + ,76.7 + ,23 + ,103.9 + ,123 + ,71.9 + ,23 + ,104.9 + ,126.9 + ,73.4 + ,27 + ,106.2 + ,127.3 + ,72.5 + ,26 + ,107.9 + ,129 + ,73.7 + ,17 + ,106.9 + ,126.2 + ,69.5 + ,24 + ,110.3 + ,125.4 + ,74.7 + ,26 + ,109.8 + ,126.3 + ,72.5 + ,24 + ,108.3 + ,126.3 + ,72.1 + ,27 + ,110.9 + ,128.4 + ,70.7 + ,27 + ,109.8 + ,127.2 + ,71.4 + ,26 + ,109.3 + ,128.5 + ,69.5 + ,24 + ,109 + ,129 + ,73.5 + ,23 + ,107.9 + ,128.9 + ,72.4 + ,23 + ,108.4 + ,128.3 + ,74.5 + ,24 + ,107.2 + ,124.6 + ,72.2 + ,17 + ,109.5 + ,126.2 + ,73 + ,21 + ,109.9 + ,129.1 + ,73.3 + ,19 + ,108 + ,127.3 + ,71.3 + ,22 + ,114.7 + ,129.2 + ,73.6 + ,22 + ,115.6 + ,130.4 + ,71.3 + ,18 + ,107.6 + ,125.9 + ,71.2 + ,16 + ,115.9 + ,135.8 + ,81.4 + ,14 + ,111.8 + ,126.4 + ,76.1 + ,12 + ,110 + ,129.5 + ,71.1 + ,14 + ,109.2 + ,128.4 + ,75.7 + ,16 + ,108 + ,125.6 + ,70 + ,8 + ,105.6 + ,127.7 + ,68.5 + ,3 + ,103 + ,126.4 + ,56.7 + ,0 + ,99.6 + ,124.2 + ,57.9 + ,5 + ,97.9 + ,126.4 + ,58.8 + ,1 + ,97.6 + ,123.7 + ,59.3 + ,1 + ,96.2 + ,121.8 + ,61.3 + ,3 + ,97.9 + ,124 + ,62.9 + ,6 + ,94.5 + ,122.7 + ,61.4 + ,7 + ,95.4 + ,122.9 + ,64.5 + ,8 + ,94.4 + ,121 + ,63.8 + ,14 + ,96.3 + ,122.8 + ,61.6 + ,14 + ,95.1 + ,122.9 + ,64.7 + ,13) + ,dim=c(4 + ,61) + ,dimnames=list(c('totip' + ,'ntdzc' + ,'drzc' + ,'cindex ') + ,1:61)) > y <- array(NA,dim=c(4,61),dimnames=list(c('totip','ntdzc','drzc','cindex '),1:61)) > 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/freestat/rcomp/tmp/1zcbs1257927244.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) Warning messages: 1: In strwidth(labels, "user") : font width unknown for character 0xd 2: In text.default(x, y, txt, cex = cex, font = font) : font width unknown for character 0xd 3: In text.default(x, y, txt, cex = cex, font = font) : font metrics unknown for character 0xd > dev.off() null device 1 > > #Note: the /var/www/html/freestat/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/freestat/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 = 6.4008, p-value = 1.546e-10 alternative hypothesis: true tau is not equal to 0 sample estimates: tau 0.5657691 > 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/freestat/rcomp/tmp/2zwtz1257927244.tab") > > system("convert tmp/1zcbs1257927244.ps tmp/1zcbs1257927244.png") > > > proc.time() user system elapsed 0.713 0.288 0.797