title: Changing x-axis tick labels in reverse plot
body: <p>I try to have an axis going from 0 to 24 (that represent hours in a day). With tick labels at 6, 12 and 18 too.</p>
  <p>I am struggling, I tried already scale_x_discrete and scale_x_continuous and ylim, but the axis always goes from 0 to 25... :(</p>
  <p>Thanks in avance for your help</p>
  <p><a href="https://i.stack.imgur.com/A0RlG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A0RlG.png" alt="enter image description here" /></a></p>
  <pre><code>Categ &lt;- c(&quot;Employment&quot;,&quot;Voluntary work&quot;,&quot;Householdchores&quot;,&quot;Household member care&quot;,&quot;Personal care&quot;,&quot;Study&quot;,&quot;Sports and outdoor&quot;,
               &quot;Leisure&quot;,&quot;Travel or unspecified&quot;,&quot;Sleep&quot;)
    Regime &lt;- c(&quot;Unemp.&quot;, &quot;Part-time 1&quot; ,&quot;Part-time 2&quot; ,&quot;Full time&quot;  , &quot;Overtime&quot;)
    Share &lt;- c(0.00,0.10,3.71,1.14,2.70,0.18,0.37,5.55,1.28,8.96,1.29,0.10,4.13,1.13,3.10,0.11,0.18,3.73,1.72,8.50,3.79,0.13,2.89,0.78,2.43,0.04,0.22,3.94,1.69,8.09,5.78,0.08,1.96,
      0.76,2.17,0.03,0.24,3.44,1.48,8.05,7.88,0.10,1.46,0.57,1.91,0.02,0.20,2.73,1.33,7.80)
    data &lt;- data.frame(Regime = rep(rev(Regime), each=10),
                       Category = rep(Categ,times=5),
                       Share = Share)
    pct2 &lt;- ggplot(data, 
           aes(x = Regime, y = Share)) +
      geom_bar(aes(fill = Category),
               stat = &quot;identity&quot;, colour=&quot;black&quot;)+
      coord_flip() +
      theme(panel.background = element_blank()) + 
      scale_fill_manual(&quot;Legend&quot;, values = c(&quot;Employment&quot; = &quot;#F4A582&quot;, &quot;Voluntary work&quot; = &quot;#FDDBC7&quot;, &quot;Household chores&quot; = &quot;#92C5DE&quot;, &quot;Household member care&quot; = &quot;#4393C3&quot;, &quot;Personal care&quot; = &quot;#737373&quot;, &quot;Study&quot; = &quot;#969696&quot;, &quot;Sports and outdoor&quot; = &quot;#BDBDBD&quot;, &quot;Leisure&quot; = &quot;#D9D9D9&quot;, &quot;Travel or unspecified&quot;= &quot;#F0F0F0&quot;, &quot;Sleep&quot; = &quot;#F6E8C3&quot;)) +
      ylim(0,24)
    print(pct2)
  </code></pre>