Learn R Programming

softwareRisk (version 0.1.0)

theme_AP: A clean, publication-oriented ggplot2 theme

Description

theme_AP() provides a minimalist, publication-ready theme based on ggplot2::theme_bw(), with grid lines removed, compact legends, and harmonized text sizes. It is designed for dense network and path-visualization plots (e.g. call graphs, risk paths).

Usage

theme_AP()

Arguments

Value

A ggplot2::theme object.

Details

The theme:

  • removes major and minor grid lines,

  • uses transparent legend backgrounds and keys,

  • standardizes text sizes for axes, legends, strips, and titles,

  • reduces legend spacing for compact layouts.

This theme is intended to be composable: it should be added to a ggplot object using + theme_AP().

Examples

Run this code
ggplot2::ggplot(mtcars, ggplot2::aes(mpg, wt)) +
  ggplot2::geom_point() +
  theme_AP()

Run the code above in your browser using DataLab