3

Context: R/ggplot2.

If I am not mistaken, theme_bw() used to draw some black gridlines, but with the latest version it doesn't. Is there a way to restore previous situation ?

tonytonov
  • 25,060
  • 16
  • 82
  • 98
stathisk
  • 234
  • 3
  • 12

1 Answers1

4

Check this relatively old question, the grid there is grey, which is also confirmed by the theme definition here. So I suppose it has always been the same.

To "restore" black grid lines, use

qplot(1:10) + 
  theme_bw() + 
  theme(panel.grid.minor = element_line(colour = "black", size = 0.5), 
        panel.grid.major = element_line(colour = "black", size = 0.2))
Community
  • 1
  • 1
tonytonov
  • 25,060
  • 16
  • 82
  • 98