如何在ggplot中镜像y轴

时间:2020-03-06 22:07:11

标签: r ggplot2

我想要深度间隔1在顶部,深度间隔4在底部。我尝试了coord_flip()和scale_y_reverse()。由于“错误:将离散值提供给连续刻度”,因此无法执行scale_x_reverse()。我尝试过scale_x_discrete()并将“深度”从“系数”更改为“数值”。看起来很简单,但是我遇到了一个困难时期:

enter image description here enter image description here

0 个答案:

没有答案