title: Specifiy which date is labelled first on x-axis
body: <p>I have the following data:</p>
  <pre><code>structure(list(Month = structure(c(17744, 17775, 17805, 17836, 
  17866, 17897, 17928, 17956, 17987, 18017, 18048, 18078, 18109, 
  18140, 18170, 18201, 18231, 18262, 18293, 18322, 18353, 18383
  ), class = &quot;Date&quot;), Return = c(0.1, 0.4, 0.5, 0.2, -0.5, 0.2, 
  4, 0.3, 0.1, 0.4, 0.5, 0.2, -0.5, 0.2, 4, 0.3, 0.4, -0.5, 0.2, 
  0.3, 0.4, -0.5), Rating = c(&quot;1&quot;, &quot;1&quot;, &quot;NA&quot;, &quot;5&quot;, &quot;3&quot;, &quot;NA&quot;, &quot;3&quot;, 
  &quot;4&quot;, &quot;4&quot;, &quot;NA&quot;, &quot;5&quot;, &quot;5&quot;, &quot;NA&quot;, &quot;1&quot;, &quot;1&quot;, &quot;1&quot;, &quot;1&quot;, &quot;1&quot;, &quot;2&quot;, 
  &quot;2&quot;, &quot;2&quot;, &quot;2&quot;)), row.names = c(NA, -22L), class = &quot;data.frame&quot;)
  </code></pre>
  <p>I want to plot the data with &quot;Month&quot; on the x-axis and &quot;Return&quot; on the y-axis.
  First I make some adjustments to my data:</p>
  <pre><code>library(data.table)
  library(magrittr)
  library(ggplot2)
  library(zoo)
  
  Data &lt;- Data %&gt;%
    mutate(Rating = fifelse(is.na(Rating),&quot;NA&quot;,as.character(Rating)))
  
  Data$Month &lt;- as.Date(as.yearmon(Data$Month, format=&quot;%Y-%m&quot;) )
  </code></pre>
  <p>Then I use the following code:</p>
  <pre><code>ggplot(Data, aes(x=`Month`, y=`Return`, group=`Rating`, fill=`Rating`, color=`Rating`)) + 
    geom_line(size=1) +
    scale_color_brewer(palette=&quot;Paired&quot;) +
    scale_x_date(date_breaks =&quot;6 months&quot;, date_labels = &quot;%Y-%m&quot;)
  </code></pre>
  <p>Then I have some space between the y-axis and the lines of the graphs. I then run the following code that eliminates the space (included <code> expand=c(0,0)</code>):</p>
  <pre><code>ggplot(Data, aes(x=`Month`, y=`Return`, group=`Rating`, fill=`Rating`, color=`Rating`)) + 
    geom_line(size=1) +
    scale_color_brewer(palette=&quot;Paired&quot;) +
    scale_x_date(date_breaks =&quot;6 months&quot;, date_labels = &quot;%Y-%m&quot;, expand=c(0,0))
  </code></pre>
  <p>However, when I add <code> expand=c(0,0)</code> on the x-axis the first date that is shown also changes and moves very close to the y-axis which I don't like. Now 2018-08 is the first month being on the x-axis. However, before it was 2018-12 which I prefer. How can I change that so I have 2018-12 again being the first month on the x-axis being labelled.</p>