答案 0 :(得分:2)
尝试对theme()
进行修改的这种方法:
library(tidyverse)
mpg %>% ggplot(aes(x = cty, y = cyl)) + geom_point() + theme_classic() +
theme(axis.text = element_text(color = "black", face = "bold",size = 24),
line = element_line(size = 4,color = "black",lineend = "square"),
text = element_text(color = "black", face = "bold",size = 24),
axis.ticks = element_line(size = 4,color = "black",lineend = "square"))
输出: