如何用ggplot画图,theme调整字体大小和、坐标轴与坐标刻度间的距离等参数?

用ggplot画图,theme调整字体大小和、坐标轴与坐标刻度间的距离等参数,均没有变化

ggplot(GXGY, aes(x = GX, y = GY, colour = Family))+
  geom_point()+
  theme(text = element_text(size = 20))+
  theme_bw()+
  theme(panel.grid=element_blank())

ggplot(GXGY, aes(x = GX, y = GY, colour = Family))+
  geom_point()+
  theme(text = element_text(size = 40))+
  theme_bw()+
  theme(panel.grid=element_blank())

img

img

这个需要你根据函数以及设定