Skip to contents

Set defaults

use_afcharts()
Use afcharts defaults.

Style

theme_af()
Analysis Function theme for ggplot2 charts.

Colours

scale_colour_continuous_af()
Continuous colour scales for Analysis Function plots
scale_colour_discrete_af()
Discrete colour scales for Analysis Function plots
scale_fill_continuous_af()
Continuous colour fill scales for Analysis Function plots
scale_fill_discrete_af()
Discrete colour fill scales for Analysis Function plots

Colour values

af_colour_palettes
Analysis Function colour palettes
af_colour_values
Analysis Function colour names and hex codes

Helpers

mm_to_inch()
Convert millimetres to inches
save_govuk()
Save a plot at the correct dimensions for publishing on GOVUK