Skip to content

sgplot

0.5.0Package record

Graphic Styles and Colours for Scottish Government Plots

0packages depend
5.9Kdownloads / year
84.3%test coverage
13/13flavors OK

Overview

About
Maintained by Alice HannahCRAN page ↗GitHub ↗Website ↗Issues ↗Declared funder: Scottish Government

A 'ggplot2' theme and colour palettes to create accessible data visualisations in the Scottish Government.

Changes in 0.5.0
  • use_sgplot() gains a quietly argument to allow messages to be suppressed

(#67).

  • na_colour arguments are deprecated in scale_fill_continuous_sg()/

scale_colour_continuous_sg() in favour of new argument, na.value

(#73).

  • Fixed bug where use_sgplot() could not handle passing multiple arguments of

different types to theme_sg() (#63).

  • Vignettes are converted to articles. Vignettes are now not available to view

locally and only via the

pkgdown site (#66).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.5.0
READMEYes · 413 wordsVignettesNoNEWSYes · 100% structured · mentions 0.5.0Citation fileNoWebsiteYes · pkgdown

The repository also keeps web-only articles.

Help pages
11 (1 internal)includes a package overview page
Examples that run
100%7 run in a plain check
Exported functions with examples
100%
Documented parameters
84%
Return-value docs
100%
Help pages citing references
0%

Downloads

5.9K
CRAN downloads in the past year
Rank #11,660 · ~16/day · ~489/mo
Daily download trend is not available in this view yet.
34730 days
93590 days
5.9K1 year
Compare downloads with other packages →
Also on76 r2u2 autocran

Repository

18Stars
2Forks
13Open issues
0Open PRs
7Releases
306Commits
2Commit identities
ggplot2ggplot2-themerrstatsstyleaccessibilitycoloursr-package
306 commits · Last activity 2026-01-13 · 0% stars, 30d · Default branch at 0.5.0.9000, ahead of CRAN 0.5.0 (checked 2026-10-21)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
41
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-10-08 · 142026-07-07 · 18
PracticesBeta

13 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/scotgovanalysis/sgplot on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Contributing guideSupport guide
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-01-13 · The repository has a site deploy workflow

pkgdown site last built 2026-01-13

Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (3)
lintrLint workflowRStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
17 external dependencies (excludes base and recommended)

Installing sgplot adds 17 packages (7 with compiled code, 14 MB of source tarballs). Heaviest: ggplot2 6.0 MB, isoband 1.5 MB, farver 1.2 MB.

Depends (1)
R >= 2.10
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Maintainer since 0.4.0 (2025)
Copyright holder, Funder
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.5.0Latest
    record
    2026-01-13 · current release · diff ↗
  • 0.4.0
    record
    2025-05-27
  • R
    R 4.5.0 released · 2025-04-11

Package metadata

First published
2025-05-27
Total releases
2 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
1.7 KB / 6 files
Download size
42 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("sgplot")
Hannah, A., & Scottish Government. (2026). sgplot: Graphic Styles and Colours for Scottish Government Plots (Version 0.5.0) [Computer software]. https://doi.org/10.32614/CRAN.package.sgplot

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for sgplot version 0.5.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy