我正在尝试反转 Y 轴的值。我基本上希望 Y 轴随着上升而减小,因此应该是 16,而不是 24。我该怎么做?
ggplot(data=data_diff, aes(Sum.of.Diff, Sum.of.Against.Total) +
geom_point(alpha=1) +
ggtitle("Data Diff") +
geom_label_repel(data=subset(data_diff, Sum.of.Against.Total> 0 | Sum.of.Diff > 0 | Sum.of.Diff < 0), aes(label=Name), box.padding = 0.5, point.padding = .11, segment.color = 'black') +
xlab("Sum of Diff") + ylab("Sum of Against Stats Total")
Run Code Online (Sandbox Code Playgroud)
示例图:

这是我的数据集:
Name Sum.of.Against.Total Sum.of.Diff
1 Aurorus 26.00 185.66
2 Parasect 25.00 155.66
3 Leavanny 25.00 115.66
4 Abomasnow 25.00 115.66
5 Frosmoth 24.50 115.66
6 Rhyperior 24.25 115.66
7 Golem 24.25 115.66 …Run Code Online (Sandbox Code Playgroud)