Skip to contents

All functions

add_logo()
Easily add a logo to a ggplot
age_lbls()
Clean up age group labels
contrast_colors() mutate_contrast()
Choose label colors based on contrast
chronic_disease community_cohesion fin_insecurity walkability
2018 DCWS sample indicators
cws_trend
2015–2018 DCWS sample trends
dodge_lbls()
Prepare chart labels that should be repelled apart
endpoint_lbls()
endpoint_lbls
font_add_weights()
Register a set of 4 font weights for use with showtext
life_exp
Life expectancy
percent100() percent_lt1() round100()
Number formatting utilities
offset_lbls() ratio_to_max()
Offset bar chart labels without hard-coding
palx() as_tibble(<palx>) plot_palx()
Make multi-hue, multi-shade qualitative color palettes
rent_x_income
Rent and income data
round_sum100()
Round a set of numbers so they'll add up to 100
scaffold_project()
Setup directories for a typical DataHaven project
scale_y_barcontinuous()
Set a continuous scale more suited to bar charts
self_rated_health
2018 DCWS sample indicators: self-rated health
stack_lbls()
Stack labels cumulatively
stdev_brks()
Create labeled intervals based on standard deviations
tidyeval expr enquo enquos sym syms .data := as_name as_label
Tidy eval helpers
title_case()
String utilities
write_plot()
Batch save plots to multiple formats.