R grid does not start at 0,0 on the plot
<p>I'm creating a plot and trying to add a grid:</p>

<pre><code>plot(1, type="n", xlab="", ylab="", xlim=c(0, 10), ylim=c(0, 10))
axis(1, at= 0:10)
axis(2, at= 0:10)
grid(10, 10, col = 'black')
</code></pre>

<p>However, the grid is not starting at 0,0 on the plot:
<a href="https://i.stack.imgur.com/GBwUs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GBwUs.png" alt="enter image description here"></a></p>

<p>How can I fix this?</p>