如何在ggplot2中为theme_bw()设置较暗的网格线?

Gee*_*ata 5 r ggplot2

如何theme_bw()在ggplot2中获得稍暗的网格线?

我已经看到了一些答案,但大多数都太复杂了theme().

有更简单的方法吗?

corr.plot.contour(data=foo1,x='log(area)',y='log(fd)',xl='Basa(log)',yl='Flo'+stat_smooth(method="lm",formula=y~x)+theme_bw()+ggsave("xyz.png")
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Gee*_*ata 11

来自甜菜根的评论.

corr.plot.contour(data = foo1, x = 'log(area)', y = 'log(fd)', 
                              xl = 'Basa(log)', yl = 'Flo' + 
stat_smooth(method = "lm", formula = y~x) + 
theme_bw() + 
theme(panel.grid.major = element_line(colour = "#808080")) + 
    ggsave("xyz.png")
Run Code Online (Sandbox Code Playgroud)