How can I have darker gridlines for theme_bw() in ggplot2?

ggplot2, r

Solution

From beetroot's comments.

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")

Problem

How can I get slightly darker gridlines for `theme_bw()` in ggplot2? I have seen some some answers, but most are too complicated using `theme()`. Is there a easier way? ``` 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") ```

Original source