Situation & data
I have a dataframe df of athlete positions in a race (I\'ve already melted it for use with ggpl
df
melted
ggpl
For a discrete axis, using reorder() worked for me. In context of the above problem, it would look something like this:
ggplot(df, aes(x = distanceRemaining, y = reorder(position, desc(position))))
Hope this helps.