Package: afcharts 0.5.1
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:
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✨
card.svg |card.png
afcharts/json (API)
NEWS
| # 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
- af_colour_palettes - Analysis Function colour palettes
- af_colour_values - Analysis Function colour names and hex codes
- af_dark_blue - Individual Analysis Function colours
- af_grey - Individual Analysis Function colours
- af_orange - Individual Analysis Function colours
- af_pale_grey - Individual Analysis Function colours
Last updated from:0f2fe2cfa2. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 131 | ||
| source / vignettes | OK | 213 | ||
| linux-release-x86_64 | OK | 133 | ||
| macos-release-arm64 | OK | 150 | ||
| macos-oldrel-arm64 | OK | 233 | ||
| windows-devel | OK | 157 | ||
| windows-release | OK | 89 | ||
| windows-oldrel | OK | 102 | ||
| wasm-release | OK | 105 |
Exports:mm_to_inchsave_govukscale_colour_continuous_afscale_colour_discrete_afscale_fill_continuous_afscale_fill_discrete_aftheme_afuse_afcharts
Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangS7scalestibbletidyselectutf8vctrsviridisLitewithr
Accessibility
Rendered fromaccessibility.Rmdusingknitr::rmarkdownon May 05 2026.Last update: 2026-02-23
Started: 2023-02-28
Colours
Rendered fromcolours.Rmdusingknitr::rmarkdownon May 05 2026.Last update: 2025-09-01
Started: 2023-02-22
Cookbook
Rendered fromcookbook.Rmdusingknitr::rmarkdownon May 05 2026.Last update: 2025-08-22
Started: 2023-05-11
Saving charts
Rendered fromsaving.Rmdusingknitr::rmarkdownon May 05 2026.Last update: 2026-02-23
Started: 2023-05-11
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Analysis Function colour palettes | af_colour_palettes |
| Analysis Function colour names and hex codes | af_colour_values |
| Individual Analysis Function colours | af_colours af_dark_blue af_grey af_orange af_pale_grey |
| Convert millimetres to inches | mm_to_inch |
| Save a plot at the correct dimensions for publishing on GOVUK | save_govuk |
| Continuous colour scales for Analysis Function plots | scale_colour_continuous_af |
| Discrete colour scales for Analysis Function plots | scale_colour_discrete_af |
| Continuous colour fill scales for Analysis Function plots | scale_fill_continuous_af |
| Discrete colour fill scales for Analysis Function plots | scale_fill_discrete_af |
| Analysis Function theme for ggplot2 charts. | theme_af |
| Use afcharts defaults. | use_afcharts |
