title: Push plot legend up slightly in R
body: <p>I have an ECDF plot I've created with R and it has a legend in the bottom right hand corner.  The problem I'm having is that the faint grey dashed horizontal line that the ECDF plot places at 0.0 is overlapping the last item in my legend.  Like so:</p>
  
  <p><img src="https://i.stack.imgur.com/nPaRc.png" alt="enter image description here"></p>
  
  <p>At the moment I'm creating the legend with:</p>
  
  <pre><code>legend("bottomright",c("Original","Minus 30 minutes"),col=c("black","red"),lty=c("dashed","dotted"))
  </code></pre>
  
  <p>Is there a way to simply push the legend up a little to avoid the overlap problem?  An ideal solution would be one that programatically detects the overlap and corrects for it appropriately, but failing this, some empirically determined number of pixels offset would probably suffice.</p>