title: Abline won't appear in R
body: <p>I have run regression in R, when trying to fit an <code>abline</code> to the plot nothing happens, no error message appears. </p>
  
  <p>I've had to log transform the data so I'm wondering if this is the issue? The data is not normally distributed however we have still been asked to perform regression.</p>
  
  <p>Here is what I've tried so far:</p>
  
  <pre><code>alldata&lt;-read.csv(file.choose(),header=T)
  
  attach(alldata)
  
  plot(weight.g,wingspan.mm,log="xy")
  
  abline(lm(wingspan.mm~weight.g))
  
  fit1&lt;-lm(wingspan.mm~weight.g)
  
  &gt; summary(fit1)
  
  fit2&lt;-lm(log(wingspan.mm)~log(weight.g))
  
  plot(fit2)
  
  plot(weight.g,wingspan.mm,log="xy")
  
  abline(fit2)
  
  abline(lm(log(wingspan.mm)~log(weight.g)))
  </code></pre>
  
  <p>Can anyone spot where I am going wrong?</p>
  
  <p>Thanks,
  Kate</p>