GGplot2 theme based on theme_gray().
theme_fdbplot(
base_size = 12,
base_family = "",
base_line_size = base_size/24,
base_rect_size = base_size/24,
rel_small = 10/12,
rel_large = 15/12
)
Base font size in points. Defaults to 12.
Base font family. No default.
Base line width in points. Defaults to base_size/24.
Base line width for rectangles. Defaults to base_size/24.
Small font size. Defaults to 10/12.
Large font size. Defaults to 15/12.
GGplot2 theme based on theme_gray().
Use ggplot2::theme_update() to tweak this to specific client needs.
library(ggplot2)
data(iris)
## Set per plot.
ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +
geom_point() +
theme_fdbplot()
## Set as default theme at top of Rmarkdown file. Possibly with modifications
theme_set(FDBpub::theme_fdbplot())
theme_update(strip.background = element_rect(fill = "lightyellow", colour = NA),
strip.text = element_text(colour = "midnightblue"))
ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +
geom_point() +
facet_wrap(nrow=1, facets="Species")