Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Reverse the order of a categorical axis in ggplot2
scale_x_discrete(limits = rev(levels(the_factor)))
Copy link

this helped me too, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment