theme_phontrast: Publication theme for phontrast plots

View source: R/theme_phontrast.R

theme_phontrastR Documentation

Publication theme for phontrast plots

Description

A minimal, publication-oriented ggplot2 theme: quiet major grid, no minor grid, bold plot-aligned title, muted subtitle, left-aligned caption for estimator provenance, and a top-aligned legend. Applied by default in all phontrast plotting functions.

Usage

theme_phontrast(base_size = 12, base_family = "")

Arguments

base_size

Base font size in points.

base_family

Base font family.

Value

A ggplot2 theme object.

Examples

if (requireNamespace("ggplot2", quietly = TRUE)) {
  ggplot2::ggplot(iris, ggplot2::aes(Sepal.Length, Sepal.Width)) +
    ggplot2::geom_point() +
    theme_phontrast()
}

phontrast documentation built on Oct. 7, 2026, 5:06 p.m.