Closed jongbinjung closed 6 years ago
That retrieves the default theme, not the theme of the current plot, so I don't think it's a good idea, unfortunately.
Is there a way to use the theme is the current plot?
No, because it might be modified after you add this layer (this is a general draw back to the current design of ggplot2)
Use the current theme's panel.grid.major color for geom_ref_line, which seems to be better than defaulting to "white".
I use this a lot with
theme_bw()
, and it's a bit annoying to specifycolour = "grey92"
everytime ...