下面是我的代码,我只想让Y轴刻度以5%为增量,刻度太多,因为它们对应于每个绘图.
library(ggplot2)
ggplot(data = data, aes(x = X, y = Y, label = Label)) +
geom_point() +
scale_colour_manual(values = c("steelblue4", "chartreuse4", "gold", "firebrick2")) +
geom_text(aes(color = Goal), position = "jitter", hjust=0.5, vjust=1.1, size = 2.3) +
labs(title = "Google", x = "Correlation Coefficient", y = "Top-Box %")
Run Code Online (Sandbox Code Playgroud)