{
  "_id": "6a212111cd65a98ecbd1f0b4",
  "Package": "afcharts",
  "Title": "Produce Charts Following UK Government Analysis Function\nGuidance",
  "Version": "0.5.1",
  "Authors@R": "c(\nperson(\"Crown Copyright\", , , , role = c(\"cph\")),\nperson(\"Government Analysis Function\", , , \"Analysis.Function@ons.gov.uk\", role = c(\"fnd\")),\nperson(\"Alice\", \"Hannah\", , \"alice.hannah@gov.scot\", role = c(\"aut\")),\nperson(\"Olivia\", \"Box Power\", , \"Olivia.BoxPower@dhsc.gov.uk\", role = c(\"cre\", \"ctb\"))\n)",
  "Description": "Colour palettes and a 'ggplot2' theme to follow the UK\nGovernment Analysis Function best practice guidance for\nproducing data visualisations, available at\n<https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-charts/>.\nIncludes continuous and discrete colour and fill scales, as\nwell as a 'ggplot2' theme.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/best-practice-and-impact/afcharts,\nhttps://best-practice-and-impact.github.io/afcharts/",
  "BugReports": "https://github.com/best-practice-and-impact/afcharts/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown = TRUE)",
  "Repository": "https://best-practice-and-impact.r-universe.dev",
  "Date/Publication": "2026-05-05 10:29:32 UTC",
  "RemoteUrl": "https://github.com/best-practice-and-impact/afcharts",
  "RemoteRef": "HEAD",
  "RemoteSha": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 06:49:50 UTC",
    "User": "root"
  },
  "Author": "Crown Copyright [cph],\nGovernment Analysis Function [fnd],\nAlice Hannah [aut],\nOlivia Box Power [cre, ctb]",
  "Maintainer": "Olivia Box Power <Olivia.BoxPower@dhsc.gov.uk>",
  "MD5sum": "8ebec2088ad3fc0f8720e642524cacec",
  "_user": "best-practice-and-impact",
  "_type": "src",
  "_file": "afcharts_0.5.1.tar.gz",
  "_fileid": "c3c03daca13c9c5f25e4f620797a44a1725146a8efaab4c1df2d0924e514a121",
  "_filesize": 1662771,
  "_sha256": "c3c03daca13c9c5f25e4f620797a44a1725146a8efaab4c1df2d0924e514a121",
  "_created": "2026-06-04T06:49:50.000Z",
  "_published": "2026-06-04T06:54:09.841Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79465213087,
      "time": 140,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7404906225"
    },
    {
      "job": 79465213091,
      "time": 144,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404907152"
    },
    {
      "job": 79465213105,
      "time": 225,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7404917766"
    },
    {
      "job": 79465213094,
      "time": 177,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404906548"
    },
    {
      "job": 79464711211,
      "time": 227,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404867089"
    },
    {
      "job": 79465213104,
      "time": 128,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404902788"
    },
    {
      "job": 79465213133,
      "time": 103,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7404896011"
    },
    {
      "job": 79465213135,
      "time": 86,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7404891073"
    },
    {
      "job": 79465213126,
      "time": 102,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7404895610"
    }
  ],
  "_buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/best-practice-and-impact/afcharts",
  "_commit": {
    "id": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
    "author": "Olivia Box Power <Olivia.BoxPower@dhsc.gov.uk>",
    "committer": "Olivia Box Power <Olivia.BoxPower@dhsc.gov.uk>",
    "message": "Update README\n",
    "time": 1777976972
  },
  "_maintainer": {
    "name": "Olivia Box Power",
    "email": "olivia.boxpower@dhsc.gov.uk",
    "login": "olivia-box-power",
    "description": "",
    "uuid": 85562659
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "ggtext",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "glue",
      "role": "Suggests"
    },
    {
      "package": "stringr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "plotly",
      "role": "Suggests"
    },
    {
      "package": "gt",
      "role": "Suggests"
    },
    {
      "package": "svglite",
      "version": ">= 2.1.2",
      "role": "Suggests"
    },
    {
      "package": "ragg",
      "version": ">= 1.2.6",
      "role": "Suggests"
    },
    {
      "package": "gapminder",
      "role": "Suggests"
    },
    {
      "package": "diffviewer",
      "role": "Suggests"
    },
    {
      "package": "vdiffr",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "best-practice-and-impact",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-34",
      "n": 1
    },
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-43",
      "n": 2
    },
    {
      "week": "2025-44",
      "n": 1
    },
    {
      "week": "2025-47",
      "n": 1
    },
    {
      "week": "2026-03",
      "n": 1
    },
    {
      "week": "2026-04",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 4
    },
    {
      "week": "2026-19",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.5.1",
      "date": "2026-02-26"
    }
  ],
  "_stars": 28,
  "_contributors": [
    {
      "user": "alice-hannah",
      "count": 174,
      "uuid": 36480969
    },
    {
      "user": "olivia-box-power",
      "count": 150,
      "uuid": 85562659
    },
    {
      "user": "chcrowley",
      "count": 18,
      "uuid": 92380396
    },
    {
      "user": "giro090",
      "count": 13,
      "uuid": 135234996
    },
    {
      "user": "senths02",
      "count": 12,
      "uuid": 10116682
    },
    {
      "user": "aronnyberg",
      "count": 8,
      "uuid": 53857832
    },
    {
      "user": "alicebyers5",
      "count": 7,
      "uuid": 172813683
    },
    {
      "user": "james-lane-bduk",
      "count": 7,
      "uuid": 191242201
    },
    {
      "user": "zac-gleisner",
      "count": 2,
      "uuid": 191228565
    },
    {
      "user": "fingertipsy",
      "count": 1,
      "uuid": 37661602
    }
  ],
  "_userbio": {
    "uuid": 53307888,
    "type": "organization",
    "name": "Analysis Function ",
    "description": "The UK Government Analysis Function is a network for all civil servants working in UK government analysis."
  },
  "_downloads": {
    "count": 343,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/afcharts"
  },
  "_devurl": "https://github.com/best-practice-and-impact/afcharts",
  "_pkgdown": "https://best-practice-and-impact.github.io/afcharts/",
  "_searchresults": 17,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/afcharts.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/best-practice-and-impact/afcharts",
  "_realowner": "best-practice-and-impact",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.4.0",
      "date": "2024-11-06"
    },
    {
      "version": "0.4.1",
      "date": "2025-01-13"
    },
    {
      "version": "0.5.1",
      "date": "2026-02-26"
    }
  ],
  "_exports": [
    "mm_to_inch",
    "save_govuk",
    "scale_colour_continuous_af",
    "scale_colour_discrete_af",
    "scale_fill_continuous_af",
    "scale_fill_discrete_af",
    "theme_af",
    "use_afcharts"
  ],
  "_datasets": [
    {
      "name": "af_colour_palettes",
      "title": "Analysis Function colour palettes",
      "object": "af_colour_palettes",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "af_colour_values",
      "title": "Analysis Function colour names and hex codes",
      "object": "af_colour_values",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "af_dark_blue",
      "title": "Individual Analysis Function colours",
      "object": "af_dark_blue",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "af_grey",
      "title": "Individual Analysis Function colours",
      "object": "af_grey",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "af_orange",
      "title": "Individual Analysis Function colours",
      "object": "af_orange",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "af_pale_grey",
      "title": "Individual Analysis Function colours",
      "object": "af_pale_grey",
      "class": [
        "character"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "af_colour_palettes",
      "title": "Analysis Function colour palettes",
      "topics": [
        "af_colour_palettes"
      ]
    },
    {
      "page": "af_colour_values",
      "title": "Analysis Function colour names and hex codes",
      "topics": [
        "af_colour_values"
      ]
    },
    {
      "page": "af_colours",
      "title": "Individual Analysis Function colours",
      "topics": [
        "af_colours",
        "af_dark_blue",
        "af_grey",
        "af_orange",
        "af_pale_grey"
      ]
    },
    {
      "page": "mm_to_inch",
      "title": "Convert millimetres to inches",
      "topics": [
        "mm_to_inch"
      ]
    },
    {
      "page": "save_govuk",
      "title": "Save a plot at the correct dimensions for publishing on GOVUK",
      "topics": [
        "save_govuk"
      ]
    },
    {
      "page": "scale_colour_continuous_af",
      "title": "Continuous colour scales for Analysis Function plots",
      "topics": [
        "scale_colour_continuous_af"
      ]
    },
    {
      "page": "scale_colour_discrete_af",
      "title": "Discrete colour scales for Analysis Function plots",
      "topics": [
        "scale_colour_discrete_af"
      ]
    },
    {
      "page": "scale_fill_continuous_af",
      "title": "Continuous colour fill scales for Analysis Function plots",
      "topics": [
        "scale_fill_continuous_af"
      ]
    },
    {
      "page": "scale_fill_discrete_af",
      "title": "Discrete colour fill scales for Analysis Function plots",
      "topics": [
        "scale_fill_discrete_af"
      ]
    },
    {
      "page": "theme_af",
      "title": "Analysis Function theme for ggplot2 charts.",
      "topics": [
        "theme_af"
      ]
    },
    {
      "page": "use_afcharts",
      "title": "Use afcharts defaults.",
      "topics": [
        "use_afcharts"
      ]
    }
  ],
  "_pkglogo": "https://github.com/best-practice-and-impact/afcharts/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/best-practice-and-impact/afcharts/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "accessibility.Rmd",
      "filename": "accessibility.html",
      "title": "Accessibility",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Resources",
        "Accessibility of charts using afcharts",
        "Other accessibility considerations"
      ],
      "created": "2023-02-28 17:24:16",
      "modified": "2026-02-23 12:12:29",
      "commits": 7
    },
    {
      "source": "colours.Rmd",
      "filename": "colours.html",
      "title": "Colours",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2023-02-22 14:34:34",
      "modified": "2025-09-01 11:08:52",
      "commits": 18
    },
    {
      "source": "cookbook.Rmd",
      "filename": "cookbook.html",
      "title": "Cookbook",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "use_afcharts()",
        "Note on use of titles, subtitles and captions",
        "Dependencies"
      ],
      "created": "2023-05-11 12:37:22",
      "modified": "2025-08-22 15:13:47",
      "commits": 7
    },
    {
      "source": "saving.Rmd",
      "filename": "saving.html",
      "title": "Saving charts",
      "engine": "knitr::rmarkdown",
      "headings": [
        "File format",
        "Size and dimensions",
        "Examples",
        "Standalone image file",
        "R Markdown",
        "Knitting to Microsoft Word"
      ],
      "created": "2023-05-11 12:37:22",
      "modified": "2026-02-23 12:12:29",
      "commits": 5
    }
  ],
  "_score": 7.974272142982025,
  "_indexed": true,
  "_nocasepkg": "afcharts",
  "_universes": [
    "best-practice-and-impact",
    "olivia-box-power"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-06-04T06:52:03.000Z",
      "distro": "noble",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "9a6f8fafe864b0dd7a966b60efbcfb965458820c717b507f020bfe903d91f3ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-06-04T06:52:06.000Z",
      "distro": "noble",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "cbd2df101af3655efdcd88b380d9af42f1d41ff83aa1b116c0c61b5cf425703f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-06-04T06:52:49.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "ffa5c0bfb0334994459483e88078873acf144ee1c2104f1d3bd220c2f3e69ecc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-06-04T06:52:05.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "4d27d1d98dfe72df328d813753ef86026490a312d2f06938765f760e34ab966a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.1",
      "date": "2026-06-04T06:52:13.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "6910838659f4fdc024390786ae3ada63531998fb02f6208d4e31be6956e5c501",
      "status": "success",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-06-04T06:51:12.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "8a8b5bff8f0bd75dc701202faff8608a0fd7c6e40bab13b9b1fa047cb5a6156f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-06-04T06:51:01.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "df8b8618b212ea25bc31a71667f1cdff94f6284e372d7f565b5eb26181b32c4d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-06-04T06:51:10.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "dfa6374b9e9da0ba2e74df22ad6153f9a693f392b1d76d923c7cf5de2f44beef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/26935657558"
    }
  ]
}