title: Grid line consistent with ticks on axis
body: <p>I am embarrassed to ask this simple question, but has been in kicking my mind for several days whenever I create a plot:</p>
  
  <pre><code>plot (x = 1:10, y = rnorm (10, 5, 2))
  grid (10,10, lty = 6, col = "cornsilk2")
  </code></pre>
  
  <p>I want to position the grids right at where axis are labelled, i.e. at 2, 4, 6, 8, 10 in x axis and similarly 3, 4, 5, 6, 7, 8 in y axis. </p>
  
  <p><img src="https://i.stack.imgur.com/3iZRm.jpg" alt="enter image description here"></p>
  
  <p>I want to automate the process as whenever the plot size changes the default label behaviour changes. See the following plot: </p>
  
  <p><img src="https://i.stack.imgur.com/JemTt.jpg" alt="enter image description here"></p>