Skip to contents

A complete theme for reports and faceted statistical graphics

Usage

theme_forma(
  base_size = 12,
  base_family = "sans",
  mode = c("light", "dark"),
  panel = c("open", "framed"),
  grid = c("both", "x", "y", "none"),
  legend_position = "bottom",
  text_engine = c("native", "shaped"),
  lang = NULL,
  preset = c("report", "journal", "editorial", "presentation", "dashboard")
)

Arguments

base_size

Base text size in points. The preset supplies a default when this argument is omitted.

base_family

Installed family or device generic.

mode

Light or dark background.

panel

Open axes or framed panels with a shaded strip.

grid

Major grid lines along both axes, x, y or neither.

legend_position

Position accepted by ggplot2.

text_engine

Native device text or whole-paragraph shaped plain text.

lang

Optional language tag passed to shaped text elements.

preset

Publication setting. Report keeps the original 12 pt design, journal defaults to 10 pt with thin rules, editorial to 13 pt with a stronger title hierarchy, presentation to 18 pt with wider spacing, and dashboard to 10 pt with compact framed panels. Explicit base_size, grid and panel settings override these defaults. Physical dimensions are chosen at export. The theme does not resize text for the device.

Value

A complete ggplot2 theme.

Examples

ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg)) +
  ggplot2::geom_point() + theme_forma(grid = "y")