这段代码是用来调整 ggplot2 图形的主题(theme)。

panel.grid.major = element_blank() 消除主要网格线

panel.grid.minor = element_blank() 消除次要网格线

axis.text.y = element_text(size = 12, face = "bold") 设置 y 轴标签的字体大小为 12,字体加粗

legend.title = element_blank() 消除图例标题

legend.position = 'none' 不显示图例


原文地址: https://www.cveoy.top/t/topic/dGfz 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录