title: ggplot in r - date on x-axis
body: <p>I want to ask about the <code>ggplot2</code><br>
  <a href="https://i.stack.imgur.com/YoMzq.png" rel="nofollow noreferrer">Datasets</a></p>
  
  <p>Date is classified as the "date format". However, when I tried to draw timeseries from <code>ggplot</code> it shows strange x axis.</p>
  
  <pre><code>ggplot()+ 
      geom_line(data = Farm.MLR, aes(x = date, y = observed), colour = "black")+ 
      scale_x_date(labels = function(x) format(x, "%d-%b-%y"))+ 
      geom_point(data = Farm.MLR, aes(x = date, y = observed), colour = "black")+ 
      xlab("Date") + ylab("SM")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/cyuF6.png" rel="nofollow noreferrer">Result</a></p>
  
  <p>Do you have any idea what's problem with my code?</p>