title: Incorrect x axis plotting
body: <p><code>enter code here</code>[enter image description here][1]</p>
  
  <pre><code>library(ggplot2)
  library(dplyr)
  setwd('C:/Users/nchatterjee2/Desktop')
  df &lt;- read.csv("PD.csv", header=TRUE, sep=",",row.names=NULL, fill = T)
  head(df)
  
  #plotting
  df&lt;-ggplot(data=df) + geom_point(aes(x=Day,y=Biomass,color = factor(Year))) +
  
    ylim(0, 10000)+
    theme_bw() + 
    theme(
      plot.background = element_blank()
      ,panel.grid.major = element_blank()
      ,panel.grid.minor = element_blank()
    ) 
  </code></pre>
  
  <p>I am trying to plot biomass data for all planting dates from September 15 - October 31. While plotting, it plots dates randomly. I have arranged the data chronologically so I am unable to understand what I did wrong. If I split the data into four ranges (Sept 15- Sept 30, Oct 1-Oct 9 and so on), I do get the right output. 
  head(df)
  Data frame looks like this: 
  head(df)</p>
  
  <pre><code> Day Biomass         Year
  1 Sep15    1249 Cool and Dry
  2 Sep15    2490 Warm and Dry
  3 Sep15    1600 Warm and Dry
  4 Sep15    4664 Warm and Dry
  5 Sep15    2400 Cool and Wet
  6 Sep15     236 Cool and Dry
  </code></pre>
  
  <pre><code>
  
    [1]: https://i.stack.imgur.com/B7aLE.png
  
  </code></pre>