A clean, minimal theme used by every plotting function in the package. It is
a light modification of ggplot2::theme_minimal() with subtle gridlines,
centred titles and comfortable margins.
Usage
theme_depictr(
base_size = depictr_opt("base_size"),
base_family = depictr_opt("base_family"),
grid = "xy"
)Details
The default base_size and base_family come from the global options
depictr.base_size and depictr.base_family (see depictr_options()), so
the package-wide font size can be set once; passing the arguments explicitly
overrides them. The title colour is the resolved depictr_brand(), which in
turn honours options(depictr.brand = ).
Examples
library(ggplot2)
ggplot(crop_yield, aes(fertiliser, yield)) +
geom_point() +
theme_depictr()
