diff --git a/DESCRIPTION b/DESCRIPTION index 0ffb0f2..ab0f025 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ 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", , , "statistics.enquiries@gov.scot", role = c("cph", "fnd")), person("Alice", "Hannah", , "alice.hannah@gov.scot", role = c("aut", "cre")) @@ -8,8 +8,7 @@ Authors@R: c( 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) diff --git a/NEWS.md b/NEWS.md index 5a2f8d4..92b362a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/README.Rmd b/README.Rmd index b4bb625..00378cd 100644 --- a/README.Rmd +++ b/README.Rmd @@ -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. diff --git a/README.md b/README.md index 0e4d85a..329efd8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/cran-comments.md b/cran-comments.md index c31fff6..df06c97 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -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. diff --git a/man/sgplot-package.Rd b/man/sgplot-package.Rd index bfd8583..99a8566 100644 --- a/man/sgplot-package.Rd +++ b/man/sgplot-package.Rd @@ -11,8 +11,8 @@ A 'ggplot2' theme and colour palettes to create accessible data visualisations i \seealso{ Useful links: \itemize{ - \item \url{https://github.com/ScotGovAnalysis/sgplot/} \item \url{https://ScotGovAnalysis.github.io/sgplot/} + \item \url{https://github.com/ScotGovAnalysis/sgplot} \item Report bugs at \url{https://github.com/ScotGovAnalysis/sgplot/issues} }