Graphic Styles and Colours for Scottish Government Plots
Overview
A 'ggplot2' theme and colour palettes to create accessible data visualisations in the Scottish Government.
use_sgplot()gains aquietlyargument to allow messages to be suppressed
(#67).
na_colourarguments are deprecated inscale_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
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
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
Repository
- 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
Forks over time
Releases over time
Issues over time
PRs over time
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.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-01-13 · The repository has a site deploy workflow
pkgdown site last built 2026-01-13
Show all practicesHide 2 practices
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.5.0Latest
- 0.4.02025-05-27
- RR 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")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.
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.