title: Spearman's rank correlation
body: <p>i'm writing a script that reads two .txt file in two vectors. After that I want to make a Spearman's rank correlation and plot the result.
  The first vectors value's length is 12-13 characters (e.g. 7.3445555667 or 10.3445555667) and the second vectors value's length is one character (e.g. 1 or 2).</p>
  
  <p>The code:</p>
  
  <pre><code>vector1 &lt;- read.table ("D:...path.../mytext1.txt", header=FALSE)
  vector2 &lt;- read.table ("D:...path.../mytext2.txt", header=FALSE)
  cor.coeff = cor(vector1 , vector2 , method = "spearman")
  cor.test(vector1 , vector2 , method = "spearman")
  plot(vector1.var, vector2.var)
  </code></pre>
  
  <p>The .txt files contain only numeric values.</p>
  
  <p>I'm getting two errors, the first in line 4 it's like " 'x' have to be a numeric vector"
  and the second error occurs in line 5 it's like "object vector 1.var couldn't be found"</p>
  
  <p>I also tried  </p>
  
  <pre><code> plot(vector1, vector2)
  </code></pre>
  
  <p>instead of </p>
  
  <pre><code> plot(vector1.var, vector2.var)
  </code></pre>
  
  <p>But then there's an error like "Error in stripchart.default (x1,...) : invalid plot-method</p>
  
  <p>The implementation is orientated at <a href="http://www.gardenersown.co.uk/Education/Lectures/R/correl.htm#correlation" rel="nofollow">http://www.gardenersown.co.uk/Education/Lectures/R/correl.htm#correlation</a></p>