| Title: | Princeton Themes for 'ggplot2' |
|---|---|
| Description: | What the package does (one paragraph). |
| Authors: | Christopher T. Kenny [aut, cre] (ORCID: <https://orcid.org/0000-0002-9386-6860>) |
| Maintainer: | Christopher T. Kenny <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.0.0.9000 |
| Built: | 2026-05-31 06:20:32 UTC |
| Source: | https://github.com/christopherkenny/ggtiger |
Princeton Color Palette
princetonprinceton
A list of palette::palette vectors
princeton$coreprinceton$core
Scales consistent with Princeton Brand Template
scale_color_princeton_c(palette = "sequential_orange", ...) scale_fill_princeton_c( palette = "sequential_orange", na.color = "#5b575d", ... ) scale_color_princeton_b( palette = "sequential_orange", na.color = "#5b575d", ... ) scale_fill_princeton_b( palette = "sequential_orange", na.color = "#5b575d", ... ) scale_color_princeton_d(palette = "core", ...) scale_fill_princeton_d(palette = "core", ...) scale_colour_princeton_d(palette = "core", ...) scale_colour_princeton_c(palette = "sequential_orange", ...) scale_colour_princeton_b( palette = "sequential_orange", na.color = "#5b575d", ... )scale_color_princeton_c(palette = "sequential_orange", ...) scale_fill_princeton_c( palette = "sequential_orange", na.color = "#5b575d", ... ) scale_color_princeton_b( palette = "sequential_orange", na.color = "#5b575d", ... ) scale_fill_princeton_b( palette = "sequential_orange", na.color = "#5b575d", ... ) scale_color_princeton_d(palette = "core", ...) scale_fill_princeton_d(palette = "core", ...) scale_colour_princeton_d(palette = "core", ...) scale_colour_princeton_c(palette = "sequential_orange", ...) scale_colour_princeton_b( palette = "sequential_orange", na.color = "#5b575d", ... )
palette |
Name of the palette to use. See princeton for available palettes. |
... |
Additional arguments to pass to ggplot2::binned_scale for |
na.color |
Color to use for |
a ggplot scale object
library(ggplot2) ggplot(mpg, aes(cty)) + geom_density(aes(fill = factor(cyl)), alpha = 0.8) + labs( title = 'Density plot', subtitle = 'City Mileage Grouped by Number of cylinders', caption = 'Source: mpg', x = 'City Mileage', fill = '# Cylinders' ) + facet_wrap(~ (hwy > 29)) + scale_fill_princeton_d() + theme_princeton()library(ggplot2) ggplot(mpg, aes(cty)) + geom_density(aes(fill = factor(cyl)), alpha = 0.8) + labs( title = 'Density plot', subtitle = 'City Mileage Grouped by Number of cylinders', caption = 'Source: mpg', x = 'City Mileage', fill = '# Cylinders' ) + facet_wrap(~ (hwy > 29)) + scale_fill_princeton_d() + theme_princeton()
A theme based on Princeton University design guidelines
theme_princeton( princeton_font = TRUE, title_family = NULL, base_family = NULL, ... )theme_princeton( princeton_font = TRUE, title_family = NULL, base_family = NULL, ... )
princeton_font |
Should Princeton fonts be used if available? |
title_family |
Font family for titles. It will search locally for fonts |
base_family |
Font family for base text |
... |
Additional arguments to pass to |
a ggplot2 theme object
theme_princeton()theme_princeton()