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. > y <- c(38.6,4.5,14.0,-999.0,69.0,27.0,19.0,30.4,28.0,50.0,7.0,30.0,-999.0,40.0,3.5,50.0,6.0,10.4,34.0,7.0,28.0,20.0,3.9,39.3,41.0,16.2,9.0,7.6,46.0,22.4,16.3,2.6,24.0,100.0,-999.0,-999.0,3.2,2.0,5.0,6.5,23.6,12.0,20.2,13.0,27.0,18.0,13.7,4.7,9.8,29.0,7.0,6.0,17.0,20.0,12.7,3.5,4.5,7.5,2.3,24.0,3.0,13.0) > x <- c(-999.0,2.0,-999.0,-999.0,1.8,.7,3.9,1.0,3.6,1.4,1.5,.7,2.7,-999.0,2.1,.0,4.1,1.2,1.3,6.1,.3,.5,3.4,-999.0,1.5,-999.0,3.4,.8,.8,-999.0,-999.0,1.4,2.0,1.9,2.4,2.8,1.3,2.0,5.6,3.1,1.0,1.8,.9,1.8,1.9,.9,-999.0,2.6,2.4,1.2,.9,.5,-999.0,.6,-999.0,2.2,2.3,.5,2.6,.6,6.6,-999.0) > ylab = 'Y' > xlab = 'X' > #'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: > k <- cor.test(x,y,method='spearman') Warning message: In cor.test.default(x, y, method = "spearman") : Cannot compute exact p-values with ties > postscript(file="/var/www/html/rcomp/tmp/14frr1292855743.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(x,y,main='Scatterplot',xlab=xlab,ylab=ylab) > grid() > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/24frr1292855743.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(rank(x),rank(y),main='Scatterplot of Ranks',xlab=xlab,ylab=ylab) > grid() > 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,'Spearman Rank Correlation',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'rho',header=TRUE) > a<-table.element(a,k$estimate) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'2-sided p-value',header=TRUE) > a<-table.element(a,k$p.value) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'S',header=TRUE) > a<-table.element(a,k$statistic) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/37f8f1292855743.tab") > > try(system("convert tmp/14frr1292855743.ps tmp/14frr1292855743.png",intern=TRUE)) character(0) > try(system("convert tmp/24frr1292855743.ps tmp/24frr1292855743.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.515 0.338 3.767