{
  "_id": "6ab22bc93d719c1f84089caf",
  "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-09-22 07:13:58 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>",
  "_user": "best-practice-and-impact",
  "_type": "src",
  "_file": "afcharts_0.5.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/7d4835822fef4938537ac1bfa5bb66582c5efa237827ccaed5186aa83f36bf00",
  "_filesize": 1657626,
  "_sha256": "7d4835822fef4938537ac1bfa5bb66582c5efa237827ccaed5186aa83f36bf00",
  "_expires": "2026-12-31T07:18:31.000Z",
  "_created": "2026-09-22T07:13:58.000Z",
  "_published": "2026-09-22T07:18:33.509Z",
  "_jobs": [
    {
      "job": 106650998048,
      "time": 149,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10681223467"
    },
    {
      "job": 106650998132,
      "time": 156,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10681458146"
    },
    {
      "job": 106650998062,
      "time": 226,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10681588049"
    },
    {
      "job": 106650998014,
      "time": 137,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10681408290"
    },
    {
      "job": 106650072588,
      "time": 206,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10681632453"
    },
    {
      "job": 106650997965,
      "time": 128,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10680769234"
    },
    {
      "job": 106650998143,
      "time": 87,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10681473001"
    },
    {
      "job": 106650998046,
      "time": 93,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10681033640"
    },
    {
      "job": 106650998039,
      "time": 93,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10680674205"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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-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 ",
    "followers": 117,
    "description": "The UK Government Analysis Function is a network for all civil servants working in UK government analysis."
  },
  "_downloads": {
    "count": 482,
    "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": 20,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/afcharts.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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.906550519101451,
  "_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-09-22T07:16:22.000Z",
      "distro": "resolute",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/4adbf2b5fe3e99ba29c2696e18f35fdc54700375a909d2c9b16c0fda9f7b4b9c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-09-22T07:16:28.000Z",
      "distro": "resolute",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/51565faed5dd685f1fedf5c999da235838872b1c437396b4335459574efb5992",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-09-22T07:17:00.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/be889fcd980af99076f6c5152666b3c8307fb3559f59e2c1d39fdf5906fda15c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-09-22T07:16:00.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/f222ce13908fad40776de941c51e516f67fb66b66b79c787d7d6a389a9e6020e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.1",
      "date": "2026-09-22T07:16:22.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/139492fc7adba2717034903c7d979140ca7dbe4251569d6288fcb047df2e32db",
      "status": "success",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-09-22T07:15:10.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/a3e1d8b81a5fcebbf5eb3a713ae90d29513487b447a41e9dc08a564db3840be3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-09-22T07:15:19.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/ad6d32ba462efa657a13c6d46b90db63b12f2dc233e3ca6d0acbb88b0d0d4e62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-09-22T07:15:20.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/5fca0c0c536a8de8f2694503f6e393ae05221824604c9d9d20964364f541434b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/35698288634"
    }
  ]
}