๐ŸŽจ brutalviz

May 7, 2025 ยท View on GitHub

brutalviz is a collection of bold and beautiful ggplot2 themes that bring striking aesthetics and professional polish to your data visualizations. With integrated support for Google Fonts via showtext, each theme is designed for clarity, impact, and reproducibility across platforms and output formats.

Preview


โœจ Features

  • ๐Ÿงฑ Neo-Brutalist theme โ€” sharp, gridded, typographic emphasis with 'Anton' font
  • ๐ŸŒ… Pastel Minimal โ€” soft, clean elegance with 'Quicksand'
  • ๐ŸŒŒ Dark Dashboard โ€” dark mode for dashboards and reports using 'Fira Sans'
  • ๐ŸŒป Flat Fun โ€” playful, modern, colorful visuals with 'Baloo 2'
  • ๐Ÿ’ก Google Fonts are loaded automatically with showtext

All themes are built for ggplot2, compatible with static and interactive output, and ideal for dashboards, presentations, and publishing.


๐Ÿ“ฆ Installation

# install.packages("devtools")  # if needed
devtools::install_github("yourusername/brutalviz")

๐Ÿ”ง Usage

library(ggplot2)
library(brutalviz)

ggplot(mtcars, aes(wt, mpg, color = factor(cyl))) +
  geom_point(size = 3) +
  labs(title = "Neo-Brutalist Style") +
  theme_neo_brutalist()

You can swap in any of the following:

theme_pastel_minimal()
theme_dark_dashboard()
theme_flat_fun()

๐Ÿ“€ Fonts & Rendering

This package uses showtext to automatically load and embed Google Fonts:

  • Anton (Neo-Brutalist)
  • Quicksand (Pastel)
  • Fira Sans (Dark)
  • Baloo 2 (Fun)

Plots render crisply in RMarkdown, Quarto, PDFs, and PNGs without local font installations.


๐Ÿ“ Project Structure

brutalviz/
โ”œโ”€โ”€ R/                # Theme functions
โ”œโ”€โ”€ man/              # Auto-generated documentation
โ”œโ”€โ”€ DESCRIPTION       # Package metadata
โ”œโ”€โ”€ NAMESPACE         # Export declarations
โ”œโ”€โ”€ README.md         # You're reading it

โœ… To Do

  • Add theme-specific color palettes
  • Create Quarto demo gallery
  • Publish pkgdown site

๐Ÿคช Contributing

Contributions welcome! Feel free to fork and submit a pull request if you have new theme ideas or improvements.


๐Ÿ“œ License

MIT License ยฉ Lasse, 2025 Use freely in personal, academic, or commercial projects.