title: Reverse order of discrete y axis in ggplot2
body: <p><strong>Situation &amp; data</strong></p>
  <p>I have a dataframe <code>df</code> of athlete positions in a race:</p>
  <pre><code>df &lt;- structure(list(athlete = c(&quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;, &quot;F&quot;, &quot;G&quot;,
  &quot;H&quot;, &quot;I&quot;, &quot;J&quot;, &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;, &quot;I&quot;, &quot;J&quot;, 
  &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;, &quot;I&quot;, &quot;J&quot;, &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, 
  &quot;D&quot;, &quot;E&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;, &quot;I&quot;, &quot;J&quot;, &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;, &quot;F&quot;, 
  &quot;G&quot;, &quot;H&quot;, &quot;I&quot;, &quot;J&quot;, &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;, &quot;I&quot;, 
  &quot;J&quot;), distanceRemaining = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 
  1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 
  3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 
  4L, 4L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 5L, 6L, 6L, 6L, 6L, 
  6L, 6L, 6L, 6L, 6L, 6L), .Label = c(&quot;1400m&quot;, &quot;1200m&quot;, &quot;600m&quot;, 
  &quot;400m&quot;, &quot;200m&quot;, &quot;FINISH&quot;), class = &quot;factor&quot;), position = c(10, 
  6, 7, 8, 2, 1, 3, 5, 9, 4, 9, 8, 7, 6, 4, 3, 1, 5, 10, 2, 8, 
  7, 9, 5, 6, 2, 3, 1, 10, 4, 9, 8, 6, 5, 7, 3, 2, 4, 10, 1, 4, 
  5, 1, 6, 8, 3, 2, 7, 10, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)), row.names = c(NA, 
  -60L), .Names = c(&quot;athlete&quot;, &quot;distanceRemaining&quot;, &quot;position&quot;), class = &quot;data.frame&quot;)
  </code></pre>
  <p>I'm plotting the data with</p>
  <pre><code>library(ggplot2)
  g &lt;- ggplot(df, aes(x=distanceRemaining, y =position, colour=athlete, group = athlete))
  g &lt;- g + geom_point()
  g &lt;- g + geom_line(size=1.15)
  g &lt;- g + scale_y_discrete()
  g
  </code></pre>
  <p>To give</p>
  <p><img src="https://i.stack.imgur.com/RCxrN.png" alt="athletePositions" /></p>
  <p><strong>Question</strong></p>
  <p>How do I reverse the order of the y-axis so that 10 is at the bottom and 1 is at the top?</p>