{
  "_id": "6a62fa02d3420cf5dfdb5869",
  "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-07-24 05:20:42 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/95c7106338a50fa7a465a1ac4a7048f37da4d4c9324eac5350a52026f5f35777",
  "_filesize": 1656784,
  "_sha256": "95c7106338a50fa7a465a1ac4a7048f37da4d4c9324eac5350a52026f5f35777",
  "_expires": "2026-11-01T05:37:04.000Z",
  "_created": "2026-07-24T05:20:42.000Z",
  "_published": "2026-07-24T05:37:06.821Z",
  "_jobs": [
    {
      "job": 89406213099,
      "time": 205,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8587395829"
    },
    {
      "job": 89406213175,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8587378666"
    },
    {
      "job": 89406213174,
      "time": 95,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8587599895"
    },
    {
      "job": 89406213127,
      "time": 118,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8587559710"
    },
    {
      "job": 89405680036,
      "time": 228,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8587338075"
    },
    {
      "job": 89406213121,
      "time": 133,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8587375203"
    },
    {
      "job": 89406213215,
      "time": 84,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8587361840"
    },
    {
      "job": 89406213212,
      "time": 90,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8587363550"
    },
    {
      "job": 89406213193,
      "time": 105,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8587368180"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848",
  "_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-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 ",
    "followers": 114,
    "description": "The UK Government Analysis Function is a network for all civil servants working in UK government analysis."
  },
  "_downloads": {
    "count": 460,
    "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.1",
  "_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",
    "LICENSE",
    "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-07-24T05:24:02.000Z",
      "distro": "resolute",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/babccccb76abea22c881f4bd850217481bdaf136367f07ba43d63e7ae056a3ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.5.1",
      "date": "2026-07-24T05:23:07.000Z",
      "distro": "resolute",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/6278a5fd9f57c1f6843c44a36bfbea03f22aeac831e71bdbb45d8a4387cf95cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-07-24T05:36:24.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/aa8cfd048fcd3e12e4b78c9e459ec7bf97197fa26f10c43a0043bb3c800eb733",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.5.1",
      "date": "2026-07-24T05:33:53.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/325c4f3aa49c4433d78cfa50f1250437269336b87a9d12b082245513955d6307",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.1",
      "date": "2026-07-24T05:23:13.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/774d5a628d3db33f16e3192a264df58e097b0a56137887782e3634f2e6e93d9b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-07-24T05:21:53.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/6bb359c45064bf03b9678ead280575362bf3a1e6222ebc2fa4519ef20757944a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-07-24T05:22:05.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/c3bd5352adda6ee921c009d930eb418a9f5b1bad81445302970ba39a4d37d0c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.5.1",
      "date": "2026-07-24T05:22:23.000Z",
      "commit": "0f2fe2cfa20385d86a6f4bea60c9b40e0d2bcc78",
      "fileid": "https://r2.ropensci.org/7ed29769ce1c629acf0c6fae53a0f2f77871d31b94e4bf7e4790e0c7131a2865",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/best-practice-and-impact/actions/runs/30069011848"
    }
  ]
}