Skip to contents

Themes

ggplot2 themes and layer defaults

theme_pgl_minimal()
Basic penngradlings theme template
pgl_pals()
Generate a PGL-themed color palette
scale_color_pgl_discrete() scale_colour_pgl_discrete() scale_fill_pgl_discrete()
Discrete color scales

Layers

ggplot2 layers and helper functions

annotation_textbox()
HTML textbox annotation
geom_text_outline()
Outlined text layer
zerowidth_char()
Create an HTML span of the unicode zero-width character

Font workflow

Functions for inspecting, registering, and shaping custom fonts.

load_pkg_fonts()
Load package fonts
font_hoist()
Register members of a font family as their own families
font_pluck()
Register a font variant with OpenType feature specifications
font_info()
Get information about a font
font_exists()
Check whether a font is registered
font_path()
Find path to a system font

Save and render plots

Functions for saving and rendering plots in interactive contexts

ggsave_auto()
Save and open a ggplot
raggsave_auto()
Save and open any plot

Data wrangling

Tidyverse-inspired data wrangling functions

qcut()
Discretize a continuous variable into quantiles
fct_derive()
Derive factor levels from another factor with unique pair-wise matches

Metaprogramming

Utility functions for analyzing/transforming code as data

name_self()
Construct a list that names itself

Miscellaneous

Miscellaneous functions

read_pcibex()
Read the results from a PCIbex experiment