我有一个看起来像这样的情节:
我的代码在这里:
df <- read_excel("Desktop/test.xlsx")
tidydf <- df
ggplot(tidydf, aes(Genome_size, `Trio_number`, color = Group)) +
geom_point() +
ylab("") +
theme_dotplot
我该怎么做:
答案 0 :(得分:1)
使用scale_y_continuous
:
scale_y_continuous(breaks = seq(0,3, by = 1)
将 scales
包和 comma
函数与 scale_x_continuous
一起使用:
library(scales)
scale_x_continuous(labels = comma)