小编use*_*007的帖子

如何在R中的散点图上生成特定数量的Y轴刻度标记

下面是我的代码,我只想让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)

r scatter-plot ggplot2

1
推荐指数
1
解决办法
1159
查看次数

标签 统计

ggplot2 ×1

r ×1

scatter-plot ×1