theme_grey(base_size = 11, base_family = "")theme_gray(base_size = 11, base_family = "")theme_bw(base_size = 12, base_family = "")theme_linedraw(base_size = 12, base_family = "")theme_light(base_size = 12, base_family = "")theme_minimal(base_size = 12, base_family = "")theme_classic(base_size = 12, base_family = "")theme_dark(base_size = 12, base_family = "")theme_void(base_size = 12, base_family = "")
Themes set the general aspect of the plot such as the colour of the background, gridlines, the size and colour of fonts.
theme_gray
theme_bw
theme_linedraw
theme_bw
.
Note that this theme has some very thin lines (<< 1 pt) which some journals
may refuse.theme_light
theme_linedraw
but with light grey lines and axes,
to direct more attention towards the data.theme_dark
theme_light
, with similar line sizes but a dark background. Useful to make thin coloured lines pop out.theme_minimal
theme_classic
theme_void
p <- ggplot(mtcars) + geom_point(aes(x = wt, y = mpg, colour=factor(gear))) + facet_wrap(~am) p
p + theme_gray()
p + theme_bw()
p + theme_linedraw()
p + theme_light()
p + theme_minimal()
p + theme_classic()
p + theme_void()