title: R studio set x axis by year values
body: <p>I need to draw the following graph:</p>
  <p>On X axis I have 72 values which represents the months from 2015 to 2020.
  On Y axis I can have value from 0 to 5.</p>
  <p>This is my code with x values divided in wrong way:</p>
  <pre><code>yval=round(runif(72, 0, 5))
  plot(yval, type=&quot;l&quot;, col=&quot;red&quot;)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/yQegP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yQegP.png" alt="This is my output" /></a></p>
  <p>I would like to see my x axis divided by year values, in my case: <strong>2015,2016,2017,2018,2019,2020</strong></p>
  <ul>
  <li>2015 in position 0,</li>
  <li>2016 in position 12,</li>
  <li>2017 in position 24,</li>
  <li>2018 in position 32,</li>
  <li>2019 in position 48,</li>
  <li>2020 in position 60</li>
  <li>And no other values.</li>
  </ul>
  <p>Something like the x axis of the following graph:
  <a href="https://i.stack.imgur.com/ynjru.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ynjru.png" alt="enter image description here" /></a></p>
  <p>How can I do this?</p>