title: labeling axis of dates in ggplot?
body: <p>I am trying to making plots using ggplot in R and I have the same problem that was discussed below.</p>
  
  <p><a href="https://stackoverflow.com/questions/33146031/date-axis-labels-in-ggplot2-is-one-day-behind">Date axis labels in ggplot2 is one day behind</a></p>
  
  <p>My data ranges from 2016-09-01 to 2016-09-30, but labels in plots say 2016-08-31 is the first day of data.
  I solved the problem with the solution in the previous question, which is:</p>
  
  <pre><code>ggplot(df, aes(x, y)) + 
      geom_point() + 
      scale_x_datetime(breaks =df$x , labels = format(df$x, "%Y-%m-%d")) 
  </code></pre>
  
  <p>(Is this to set breaks and labels by taking exact dates from the data?)</p>
  
  <p>Anyways, I have a new problem, 
  dates match to labels well now but the plot does not look good.</p>
  
  <p><img src="https://i.stack.imgur.com/uLwdY.png" alt="see my plot here"></p>
  
  <p>I am not complaining length of dates is too long, but I don't like I can't set breaks and labels by a week or a certain number of days with the solution above.
  Also, I have many missing dates.</p>
  
  <p>What should I do to solve this problem? I need a new solution.</p>