theme_ntl: ggplot2 theme for nighttime lights plots

View source: R/plot.R

theme_ntlR Documentation

ggplot2 theme for nighttime lights plots

Description

A transparent-background theme_minimal() base tuned for NTL data: tight grid, bold title, and optional overrides via .... Ink colour is a single equal-contrast grey (⁠#767676⁠, ~4.5:1 against both pure black and pure white) so the same rendered figure reads on light and dark pages alike, since pkgdown bakes each figure to one static PNG at build time.

Usage

theme_ntl(base_size = 12, ...)

Arguments

base_size

Base font size. Default 12.

...

Additional ggplot2::theme() arguments.

Value

A ggplot2 theme object.

Examples


library(ggplot2)
ggplot(data.frame(year = 2012:2020, mean_radiance = 1:9), aes(year, mean_radiance)) +
  geom_line() +
  theme_ntl()


lightson documentation built on Nov. 3, 2026, 5:07 p.m.