Automated data visualisation best practice in R: afcharts is on CRAN
Applying the Analysis Function data visualisation guidance is vital in meeting the needs of our users – and in exciting news, the afcharts R package is here to help.
afcharts automates setting accessible colours, fonts and text sizing, axes labelling, and much more. Our cookbook has everything you need to get started, with a broad range of examples covering different chart types. The cookbook also demos other customisations from ggplot2, as well as features from associated packages like HTML formatting with ggtext.
afcharts was developed from Alice Hannah’s sgplot package for data vis in Scottish Government. While the focus is on static ggplot2 charts for now, we hope to expand functionality in the future.
afcharts is maintained by the GSS Presentation Champions and is available from the Comprehensive R Archive Network (CRAN).
We welcome any questions, feedback, or new ideas. Email PHA-OHID@dhsc.gov.uk with “GSS Presentation Champions: afcharts” in the subject line, or submit a github issue.
Related:
Blog: Automated data visualisation best practice in R: afcharts release