Reverse the order of a categorical axis in ggplot2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scale_x_discrete(limits = rev(levels(the_factor))) |
This works now:
scale_x_discrete(limits = rev)
Thanks for this!
This works now:
scale_x_discrete(limits = rev)
Yes, this works! Many thanks
this helped me too, thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works now:
scale_x_discrete(limits = rev)