ggplot反映关于y轴的情节 [英] ggplot reflect plot about y-axis
本文介绍了ggplot反映关于y轴的情节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想这样做:
有没有办法反映ggplot通过y轴制作的情节? =https://i.stack.imgur.com/Z3Q2K.pngalt =在这里输入图片描述>
to:
< img src =https://i.stack.imgur.com/7CjEP.pngalt =
(显然没有反映轴标签!)
解决方案
有一个函数 scale_x_reverse()
,它可以做你想做的事。
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!)
解决方案
there is a function scale_x_reverse()
that should do what you want.
这篇关于ggplot反映关于y轴的情节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文