# Install from GitHub
remotes::install_github("childpovertyactionlab/cpaltemplates")
# Load the package
library(cpaltemplates)
# Set up fonts (run once per session)
setup_cpal_google_fonts()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:
For detailed setup instructions, see the Getting Started guide.
Documentation
Galleries
ggplot2 Chart Gallery
Browse example charts built with ggplot2 and CPAL themes including bar charts, line charts, scatter plots, heatmaps, treemaps, and more.
Highcharter Chart Gallery
Interactive chart examples using Highcharter with CPAL styling including tooltips, animations, dark mode, and specialized chart types.
Getting Started
Getting Started
Installation, initial setup, font configuration, and your first CPAL visualization.
Guides
Project Setup
Create new projects with pre-configured templates for analysis, reports, slides, Shiny apps, and more.
Colors & Palettes
CPAL’s WCAG-compliant color system with 16+ palettes for categorical, sequential, and diverging data.
Themes & Styling
ggplot2 and Highcharter themes, saving plots, adding logos, and accessibility.
Tables
Professional tables using GT (static/print) and Reactable (interactive) with CPAL styling.
Maps & Geographic
Geographic visualizations with mapgl integration and CPAL map themes.
Shiny Dashboards
Build branded Shiny dashboards with bslib theming and dark/light mode support.
Utilities & Helpers
Helper functions for logos, plot saving, accessibility checks, and more.
Troubleshooting
Solutions to common issues with fonts, themes, colors, and package configuration.
Function Reference
Complete index of all 67+ exported functions organized by category.
Feedback & Support
Have questions, found a bug, or want to request a feature?