Package: afcharts 0.5.1

Olivia Box Power

afcharts: Produce Charts Following UK Government Analysis Function Guidance

Colour palettes and a 'ggplot2' theme to follow the UK Government Analysis Function best practice guidance for producing data visualisations, available at <https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-charts/>. Includes continuous and discrete colour and fill scales, as well as a 'ggplot2' theme.

Authors:Crown Copyright [cph], Government Analysis Function [fnd], Alice Hannah [aut], Olivia Box Power [cre, ctb]

afcharts_0.5.1.tar.gz
afcharts_0.5.1.zip(r-4.7)afcharts_0.5.1.zip(r-4.6)afcharts_0.5.1.zip(r-4.5)
afcharts_0.5.1.tgz(r-4.6-any)afcharts_0.5.1.tgz(r-4.5-any)
afcharts_0.5.1.tar.gz(r-4.7-any)afcharts_0.5.1.tar.gz(r-4.6-any)
afcharts_0.5.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
afcharts/json (API)

# Install 'afcharts' in R:
install.packages('afcharts', repos = c('https://best-practice-and-impact.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/best-practice-and-impact/afcharts/issues

Pkgdown/docs site:https://best-practice-and-impact.github.io

Datasets:

On CRAN:

Conda:

7.97 score 28 stars 17 scripts 488 downloads 8 exports 26 dependencies

Last updated from:0f2fe2cfa2. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK153
source / vignettesOK213
linux-release-x86_64OK143
macos-release-arm64OK105
macos-oldrel-arm64OK79
windows-develOK114
windows-releaseOK107
windows-oldrelOK80
wasm-releaseOK152

Exports:mm_to_inchsave_govukscale_colour_continuous_afscale_colour_discrete_afscale_fill_continuous_afscale_fill_discrete_aftheme_afuse_afcharts

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalestibbletidyselectutf8vctrsviridisLitewithr

Accessibility
Resources | Accessibility of charts using afcharts | Other accessibility considerations

Last update: 2026-02-23
Started: 2023-02-28

Saving charts
File format | Size and dimensions | Examples | Standalone image file | R Markdown | Knitting to Microsoft Word

Last update: 2026-02-23
Started: 2023-05-11

Colours
Things to consider when using colour | Government Analysis Function colour palettes | Categorical palette | Sequential palette | Focus palette | Using your own colour palette | Viewing Palettes in R

Last update: 2025-09-01
Started: 2023-02-22

Cookbook
Introduction | use_afcharts() | Note on use of titles, subtitles and captions | Dependencies

Last update: 2025-08-22
Started: 2023-05-11