cpaltemplates

CPAL Data Visualization & Branding Toolkit

Consistent Branding WCAG Accessible Colors ggplot2 + Highcharter Shiny Themes

The official R package for the Child Poverty Action Lab data science team. Create consistently branded, accessible, and professional data visualizations, reports, and dashboards. Includes utility functions and project templates to get your analysis or projects started quickly.

Quick Start

Install the package from GitHub and load it:

# Install from GitHub
remotes::install_github("childpovertyactionlab/cpaltemplates")

# Load the package
library(cpaltemplates)

# Set up fonts (run once per session)
setup_cpal_google_fonts()

For detailed setup instructions, see the Getting Started guide.


Documentation

Galleries

Getting Started

Getting Started

Installation, initial setup, font configuration, and your first CPAL visualization.

Read Guide

Guides

Project Setup

Create new projects with pre-configured templates for analysis, reports, slides, Shiny apps, and more.

Read Guide

Colors & Palettes

CPAL’s WCAG-compliant color system with 16+ palettes for categorical, sequential, and diverging data.

Read Guide

Themes & Styling

ggplot2 and Highcharter themes, saving plots, adding logos, and accessibility.

Read Guide

Tables

Professional tables using GT (static/print) and Reactable (interactive) with CPAL styling.

Read Guide

Maps & Geographic

Geographic visualizations with mapgl integration and CPAL map themes.

Read Guide

Shiny Dashboards

Build branded Shiny dashboards with bslib theming and dark/light mode support.

Read Guide

Utilities & Helpers

Helper functions for logos, plot saving, accessibility checks, and more.

Read Guide

Troubleshooting

Solutions to common issues with fonts, themes, colors, and package configuration.

Read Guide

Function Reference

Complete index of all 67+ exported functions organized by category.

View Reference


Feedback & Support

Have questions, found a bug, or want to request a feature?