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
)

Arguments

base_size

Base font size in points. Defaults to 12.

base_family

Base font family. No default.

base_line_size

Base line width in points. Defaults to base_size/24.

base_rect_size

Base line width for rectangles. Defaults to base_size/24.

rel_small

Small font size. Defaults to 10/12.

rel_large

Large font size. Defaults to 15/12.

Details

GGplot2 theme based on theme_gray().

Use ggplot2::theme_update() to tweak this to specific client needs.

See also

Author

Dave Braze davebraze@gmail.com

Examples

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")