Learn R Programming

scf (version 1.0.5)

scf_theme: Default Plot Theme for SCF Visualizations

Description

The theme is designed to:

  • Render cleanly in print (single-column or wrapped layout)

  • Scale well on HD desktop monitors without visual clutter

  • Remain legible on mobile with clear fonts and sufficient contrast

The default figure dimensions assumed for export are 5.5 inches by 5.5 inches at 300 dpi, which balances compactness with accessibility across media.

All theme settings are exposed via comments to enable easy brand customization.

Usage

scf_theme(base_size = 13, base_family = "sans", grid = TRUE, axis = TRUE, ...)

Value

A ggplot2 theme object applied by all scf_plot_*() functions.

Arguments

base_size

Base font size. Defaults to 13.

base_family

Font family. Defaults to "sans".

grid

Logical. Show gridlines? Defaults to TRUE.

axis

Logical. Include axis ticks and lines? Defaults to TRUE.

...

Additional arguments passed to ggplot2::theme_minimal().

Details

Defines the SCF package's default ggplot2 theme, optimized for legibility, clarity, and aesthetic coherence across print, desktop, and mobile platforms.

See Also

ggplot2::theme(), scf_plot_dist()

Examples

Run this code
library(ggplot2)
ggplot(mtcars, aes(factor(cyl))) +
  geom_bar(fill = "#0072B2") +
  scf_theme()

Run the code above in your browser using DataLab