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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Depends:
R (>= 2.10)
Imports:
cli,
ggplot2,
ggplot2 (>= 3.5.0),
lifecycle,
rlang,
scales
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# sgplot (development version)

* 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 R/use_sgplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ use_sgplot <- function(palette_type = "sg",
default <- formals(theme_sg)

# Update default values with those passed to use_sgplot
new_values <- c(...)
new_values <- list(...)
for (i in seq_along(new_values)) {
default <- replace(default,
which(names(default) == names(new_values)[i]),
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@

<!-- badges: start -->

[![GitHub release (latest by
date)](https://img.shields.io/github/v/release/ScotGovAnalysis/sgplot)](https://github.com/ScotGovAnalysis/sgplot/releases/latest)
[![CRAN
status](https://www.r-pkg.org/badges/version/sgplot)](https://CRAN.R-project.org/package=sgplot)
[![R build
status](https://github.com/ScotGovAnalysis/sgplot/workflows/R-CMD-check/badge.svg)](https://github.com/ScotGovAnalysis/sgplot/actions)

status](https://github.com/ScotGovAnalysis/sgplot/workflows/R-CMD-check/badge.svg)](https://github.com/ScotGovAnalysis/sgplot/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->

sgplot is an R package for creating accessible plots in the Scottish
Expand Down
Loading