theme_tadaa: Official tadaa-data ggplot2 theme (for now)

View source: R/theme_tadaa.R

theme_tadaaR Documentation

Official tadaa-data ggplot2 theme (for now)

Description

Official tadaa-data ggplot2 theme (for now)

Usage

theme_tadaa(
  title.size = 16,
  text.size = 14,
  legend.position = "top",
  show.axis = FALSE,
  show.grid = TRUE,
  plot.margin = c(0.8, 0.4, 0.4, 0.8),
  font.base = "Roboto Condensed"
)

Arguments

title.size

title element size in pts.

text.size

text element size in pts.

legend.position

either one of "none", "left", "right", "bottom", "top".

show.axis

boolean or "x", "y"; should axis be drawn? Which?.

show.grid

boolean; should grid lines be drawn?.

plot.margin

margin around entire plot (unit with the sizes of the top, right, bottom, and left margins).

font.base

The base font, defaulting to "Roboto Condensed".

Note

Use hrbrthemes::import_roboto_condensed() to install Roboto Condensed.

Examples

## Not run: 
library(ggplot2)
p <- ggplot(iris, aes(x = Sepal.Width)) +
  geom_histogram(binwidth = .25) +
  labs(
    title = "Yet another iris plot",
    subtitle = "Using theme_tadaa",
    caption = "Oh hi there, didn't see you walk in"
  )

p + theme_tadaa()

## End(Not run)

tadaadata/tadaathemes documentation built on Feb. 3, 2024, 7:43 a.m.