Skip to contents

Themes

ggplot2 themes for HDAdvisors, HousingForward Virginia, PHA, and VHA projects.

theme_hda()
Use an HDAdvisors-branded ggplot2 theme
theme_hfv()
Use a HousingForward Virginia-branded ggplot2 theme
theme_pha()
Use a PHA-branded ggplot2 theme
theme_vha()
Use a VHA-branded ggplot2 theme

Palettes & scales

Discrete, continuous, and binned color scales for all four brands.

scale_color_hda() scale_colour_hda()
HDA-branded discrete color scale
scale_color_hfv() scale_colour_hfv()
HFV-branded discrete color scale
scale_color_pha() scale_colour_pha()
PHA-branded discrete color scale
scale_color_vha() scale_colour_vha()
VHA-branded discrete color scale
scale_fill_hda()
HDA-branded discrete fill scale
scale_fill_hfv()
HFV-branded discrete fill scale
scale_fill_pha()
PHA-branded discrete fill scale
scale_fill_vha()
VHA-branded discrete fill scale
scale_color_hda_c() scale_colour_hda_c()
HDA-branded continuous color scale
scale_color_hfv_c() scale_colour_hfv_c()
HFV-branded continuous color scale
scale_color_pha_c() scale_colour_pha_c()
PHA-branded continuous color scale
scale_color_vha_c() scale_colour_vha_c()
VHA-branded continuous color scale
scale_fill_hda_c()
HDA-branded continuous fill scale
scale_fill_hfv_c()
HFV-branded continuous fill scale
scale_fill_pha_c()
PHA-branded continuous fill scale
scale_fill_vha_c()
VHA-branded continuous fill scale
scale_color_hda_b() scale_colour_hda_b()
HDA-branded binned color scale
scale_color_hfv_b() scale_colour_hfv_b()
HFV-branded binned color scale
scale_color_pha_b() scale_colour_pha_b()
PHA-branded binned color scale
scale_color_vha_b() scale_colour_vha_b()
VHA-branded binned color scale
scale_fill_hda_b()
HDA-branded binned fill scale
scale_fill_hfv_b()
HFV-branded binned fill scale
scale_fill_pha_b()
PHA-branded binned fill scale
scale_fill_vha_b()
VHA-branded binned fill scale

Helpers

Theme utilities, font registration, and output helpers.

register_hda_fonts()
Register hdatools' bundled fonts for use in plots and knitr output
flip_gridlines()
Flip default major gridlines from horizontal to vertical
add_zero_line()
Add darker line to zero intercept
adjust_base_size()
Adjust base size for different output formats
get_output_format()
Determine the current output format
get_logo()
Get a logo for use in a ggplot2 plot
publish_plot()
Create dynamic graphic from plot object when document rendered as HTML
markdown_wrap_gen()
Generate a function to wrap and format facet labels with markdown

Color utilities

Named color vectors, per-brand color accessors, ggtext span helpers, and focus/emphasis palettes.

hda_colors
Named HDA color vector
hfv_colors
Named HFV color vector
pha_colors
Named PHA color vector
vha_colors
Named VHA color vector
hda_color()
Look up a single HDA color by name
hfv_color()
Look up a single HFV color by name
pha_color()
Look up a single PHA color by name
vha_color()
Look up a single VHA color by name
hda_span()
Wrap text in a brand-colored HTML span (HDA)
hfv_span()
Wrap text in a brand-colored HTML span (HFV)
pha_span()
Wrap text in a brand-colored HTML span (PHA)
vha_span()
Wrap text in a brand-colored HTML span (VHA)
hda_focus_pal()
Focus/emphasis palette for HDA
hfv_focus_pal()
Focus/emphasis palette for HFV
pha_focus_pal()
Focus/emphasis palette for PHA
vha_focus_pal()
Focus/emphasis palette for VHA

Analysis utils

General-purpose analytical utilities for housing data workflows.

add_reliability()
Add reliability labels based on coefficient of variation
fct_case_when()
Create a factor with case_when logic and automatic level ordering