4.3 Set your theme - grey vs white
If you find yourself always adding the same theme to your plot (i.e., we really like the + theme_bw()
), you can use theme_set()
so your chosen theme is applied to every plot you draw:
In fact, we usually have these two lines at the top of every script:
Furthermore, we can customise anything that appears in a ggplot()
from axis fonts to the exact grid lines, and much more.
That’s what Chapter 5: Fine tuning plots is all about, but here we are focussing on the basic functionality and how different geoms work.
But from now on,+ theme_bw()
is automatically applied on everything we make.