ggplot reflect plot about y-axis

2019-09-05 17:15发布

问题:

Is there a way to reflect a plot made with ggplot through the y-axis?

I would like to go from this:

to this: (Obviously without reflecting the axis labels!)

回答1:

there is a function scale_x_reverse() that should do what you want.



标签: r ggplot2