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

How can I get darker grid lines for theme_bw()in ggplot2?

I saw some answers, but most of them are too complicated using theme().

Is there an 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")

enter image description here

+4
source share
1 answer

From the comments of beets .

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")
+9
source

Source: https://habr.com/ru/post/1547799/


All Articles