This theme provides the defaults required to generate plots, using ggplot2,
that are aligned with the Covalence Research house style. The theme can be
modified further by using theme(). Also consider using the various colour
palettes to ensure the house style is met.
Usage
theme_covalence(
base_size = 12,
base_family = "sans",
strip_bg_colour = "#FFFFFF",
strip_text_colour = "#326aa0",
...
)Arguments
- base_size
Base font size, in points. Default is 12.
- base_family
Base font family. Default is "sans".
- strip_bg_colour
colour to fill strip backgrounds. Default is #326aa0.
- strip_text_colour
colour for strip labels. Default is #FFFFFF (white).
- ...
Additional arguments to be passed to the theme
Value
A ggplot2 theme object.
Examples
library(ggplot2)
ggplot(data = msleep, aes(x = brainwt, y = bodywt)) +
geom_point() +
theme_covalence()
#> Warning: Removed 27 rows containing missing values (`geom_point()`).
ggplot(data = diamonds, aes(x = price, y = carat)) +
geom_point(colour = covalence_colours("cov_lightblue"), alpha = 0.4) +
facet_wrap(vars(cut)) +
theme_covalence()
