title: geom_segment: Removed 1 rows containing missing values
body: <p>I am working through a linear regression example for uni variate data.</p>
  
  <p>The example is listed in this webpage: <a href="http://al3xandr3.github.com/2011/02/24/ml-ex2-linear-regression.html" rel="nofollow">http://al3xandr3.github.com/2011/02/24/ml-ex2-linear-regression.html</a></p>
  
  <p>Sorry for not pasting any code that I tried because I am not very familiar with R. I am a beginner.</p>
  
  <p>I read the R documentation to solve this error but I was unable to figure out the cause of this error.</p>
  
  <p>The error that I am getting is:</p>
  
  <pre><code>Warning message:
  Removed 1 rows containing missing values (geom_segment). 
  </code></pre>
  
  <p>The line which is causing the error is:</p>
  
  <pre><code>ex2plot + geom_abline(intercept=theta[1], slope=theta[2])
  </code></pre>
  
  <p>Can any one help me in solving this error.</p>
  
  <p>Sorry again, If this is a simple solution and if I am wasting your valuable time.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Forgot to mention, the linear regression line that I am trying to plot using the geom_abline is not plotting.</p>