简体   繁体   English

ggplot反映关于y轴的图

[英]ggplot reflect plot about y-axis

Is there a way to reflect a plot made with ggplot through the y-axis? 有没有办法通过y轴反​​映由ggplot绘制的图?

I would like to go from this: 我想从这里开始: 在此处输入图片说明

to this: 对此: 在此处输入图片说明 (Obviously without reflecting the axis labels!) (显然没有反映轴标签!)

有一个函数scale_x_reverse()应该可以执行您想要的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM