Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
Package: sgplot
Title: Graphic Styles and Colours for Scottish Government Plots
Version: 0.4.0.9000
Version: 0.5.0
Authors@R: c(
person("Scottish Government", , , "[email protected]", role = c("cph", "fnd")),
person("Alice", "Hannah", , "[email protected]", role = c("aut", "cre"))
)
Description: A 'ggplot2' theme and colour palettes to create accessible
data visualisations in the Scottish Government.
License: MIT + file LICENSE
URL: https://github.com/ScotGovAnalysis/sgplot/,
https://ScotGovAnalysis.github.io/sgplot/
URL: https://ScotGovAnalysis.github.io/sgplot/, https://github.com/ScotGovAnalysis/sgplot
BugReports: https://github.com/ScotGovAnalysis/sgplot/issues
Depends:
R (>= 2.10)
Expand Down
20 changes: 9 additions & 11 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
# sgplot (development version)
# sgplot 0.5.0

* Deprecate `na_colour` arguments in `scale_fill_continuous_sg()`/
`scale_colour_continuous_sg()` functions in favour of new argument, `na.value`
* `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](https://scotgovanalysis.github.io/sgplot/) (#66).

* Add `quietly` argument to `use_sgplot()` to allow messages to be suppressed
(#67).

* Set minimum version of ggplot (>= 3.5.0) (#62).

* Fix bug where `use_sgplot()` could not handle passing multiple arguments of
different types to `theme_sg()` (#63).

# sgplot 0.4.0

* `use_sgplot()` gains a `palette_type` argument to set default palette type
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Titles, subtitles and captions have been embedded in these example charts for de

## Related package

sgplot is the basis for the [afcharts](https://best-practice-and-impact.github.io/afcharts) package, developed by the [Government Analysis Function](https://analysisfunction.civilservice.gov.uk/). The packages remain similar, with both following the [Analysis Function Data Visualisation guidance](https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-charts/), however sgplot also uses guidance from the [Scottish Government Design System](https://designsystem.gov.scot/guidance/charts/data-visualisation-colour-palettes).
sgplot is the basis for the [afcharts](https://best-practice-and-impact.github.io/afcharts/) package, developed by the [Government Analysis Function](https://analysisfunction.civilservice.gov.uk/). The packages remain similar, with both following the [Analysis Function Data Visualisation guidance](https://analysisfunction.civilservice.gov.uk/policy-store/data-visualisation-charts/), however sgplot also uses guidance from the [Scottish Government Design System](https://designsystem.gov.scot/guidance/charts/data-visualisation-colour-palettes).

Scottish Government analysts should continue to use sgplot, rather than afcharts.

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ article](https://ScotGovAnalysis.github.io/sgplot/articles/accessibility.html#ot
## Related package

sgplot is the basis for the
[afcharts](https://best-practice-and-impact.github.io/afcharts) package,
developed by the [Government Analysis
[afcharts](https://best-practice-and-impact.github.io/afcharts/)
package, developed by the [Government Analysis
Function](https://analysisfunction.civilservice.gov.uk/). The packages
remain similar, with both following the [Analysis Function Data
Visualisation
Expand Down
4 changes: 3 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

0 errors | 0 warnings | 0 notes

* This is a new release.
## revdepcheck results

There are currently no downstream dependencies for this package.
2 changes: 1 addition & 1 deletion man/sgplot-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.