title: ggplot dismisses x axis factor levels
body: <p>I have the following issue: if I run the code, my labels for the X axis loose for some unknown reason the assigned factor levels and instead of order: 1 week, 2 week it becomes: 1 week, 10 week... when I use <code>geom_line</code> AND <code>geom_point</code>:</p>
  <pre><code>datax &lt;- read.csv(&quot;https://raw.githubusercontent.com/justasmundeikis/stackoverflow/main/example.csv&quot;)
  df &lt;- datax %&gt;%
          select(2,4,5,7,8,10,11,14,15)%&gt;%
          rename(week_nr=savaites_mirusiuju_label.en,
                 county_c=apskritysLR,
                 county=apskritysLR_label.en,
                 age_group_c=amzius_mirusiuju,
                 age_group=amzius_mirusiuju_label.en,
                 sex_c=Lytis,
                 sex=Lytis_label.en,
                 year=LAIKOTARPIS,
                 values=obsValue)%&gt;%
          filter(age_group!=&quot;Not indicated&quot;)%&gt;%
          mutate(week_nr=factor(week_nr,
                          levels=paste(1:53, &quot;week&quot;)))
  
  
  x &lt;- df %&gt;%
          filter(age_group==&quot;25–29&quot;,
                 sex_c==0,
                 county_c==&quot;00&quot;)%&gt;%
          group_by(year, week_nr)%&gt;%
          summarise(values=sum(values))%&gt;%
          mutate(cat=as.factor(ifelse(year&gt;=2020,1,0)))
  
  ggplot(x,aes(x=week_nr, values, group=year))+
          geom_line(data = x%&gt;%filter(cat==1), col=&quot;red&quot;)+
          geom_point(data = x%&gt;%filter(cat==0), col=&quot;grey&quot;)+
          theme(axis.text.x = element_text(angle = 90, hjust = 1))
  </code></pre>
  <p>... but if I run the last chunk without <code>geom_line</code></p>
  <pre><code>ggplot(x,aes(x=week_nr, values, group=year))+
          #geom_line(data = x%&gt;%filter(cat==1), col=&quot;red&quot;)+
          geom_point(data = x%&gt;%filter(cat==0), col=&quot;grey&quot;)+
          theme(axis.text.x = element_text(angle = 90, hjust = 1))
  </code></pre>
  <p>then the axis label order is correct.
  My main goal is to have grey point for all years, but 2020. For 2020 I want to have a red line, therefore i create the <code>cat</code> factor variable.</p>
  <p>How could I solve this?
  Thanks in advance</p>