), 方式总体为 theme(主题元素=函数(参数))
简单示例:
x<-c(2015,2016,2017,2018,2019,2020)
y<-c(12,13,14,25,36,57)
testdata.frame...(Year=x,Num=y)
p_theme data = test, mapping = aes(x = Year, y = Num)) +geom_line(colour = '...'))+ #改变主次网格线颜色线型大小等
theme(panel.grid.major.x=element_blank(),panel.grid.minor.x=element_blank())+#...同时隐藏与x坐标轴相交的主次网格线
theme(panel.grid=element_blank())+ #隐藏网格线(等价于同时隐藏主次网格线)
theme(panel.background=element_rect...theme_wsj() 、theme_excel() 、theme_few() 、theme_foundation() 、theme_igray() 、theme_solarized() 、theme_stata