title: R Plot points are Offset?
body: <p>So I have a plot in R, but the points seem to be offset by a small amount... (maybe by 1 point to the right).</p>
  
  <p>This is my code:</p>
  
  <pre><code>  x &lt;- 0:30
    db&lt;-dbinom(x, 30, 0.30)
    plot(x, db, type = "h", ylab=NULL)
    lines(x, db, type = "l", lty=2, ylab=NULL)
    points(db, y=NULL, col="red")
  </code></pre>
  
  <p>And here is the plot:</p>
  
  <p><img src="https://i.stack.imgur.com/EEYW9.jpg" alt="R plot, points offset"></p>
  
  <p>Am I calling the points() functions incorrectly or missing something out? I can't find anything on here or google... Any guidance would be appreciated. Thanks in advance.</p>