title: How can I get the dates on a multi-year plot to display as month names?
body: <p>Here is the code, datereal has 517 date values from 2020-02-01 to 2020-06-30.
  Plot is produced as per image.
  Ideally I would like a tick mark for each month and alternating months i.e. Feb 20, Apr20 ....May 21, Jul 21.</p>
  <pre><code>dev.new(width=12, height=7.5) 
  # Adjust the margin of plot (bottom,left,top,right)
  par(mar=c(5, 5, 3, 7))
  plot(datereal, base9, type = &quot;l&quot;, lwd=2, col = &quot;blue&quot;, xaxt = &quot;n&quot;, xlab=&quot;Month&quot;,ylab=&quot;Daily new cases &quot;)
  #plot(datereal, base9, type = &quot;l&quot;, lwd=2, col = &quot;blue&quot;, xaxt = &quot;n&quot;, xlab=&quot;              2020                Month                     2021&quot;,
  #ylab=&quot;Daily new cases &quot;)
  axis.Date(1, datereal, 
           at = seq(as.Date(&quot;2020-02-01&quot;), as.Date(&quot;2021-06-01&quot;), by = &quot;1 month&quot;))
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Ql6PK.png" rel="nofollow noreferrer">Rplot showing x axis with years not months</a></p>