Skip to content

Commit

Permalink
Merge pull request #31 from DCEW/exportpalettefcn
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjemmett authored Jul 17, 2023
2 parents f5518f6 + 944ffdc commit 527803a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
RoxygenNote: 7.2.3
Imports:
dplyr (>= 0.8.0),
ggplot2 (>= 3.1.0),
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

export(get_nhs_colour_tints)
export(get_nhs_colours)
export(get_nhs_palette)
export(scale_colour_nhs)
export(scale_fill_nhs)
export(show_nhs_theme_colour_tints)
Expand Down
2 changes: 2 additions & 0 deletions R/get_nhs_palette.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#' @param ... Additional arguments to pass to colorRampPalette()
#'
#' @importFrom grDevices colorRampPalette
#' @export
get_nhs_palette <- function(palette = "main", reverse = FALSE, ...) {
if (palette == "main") {
pal <- get_nhs_colours("Blue", "Purple", "Red", "Orange", "Green")
Expand All @@ -16,3 +17,4 @@ get_nhs_palette <- function(palette = "main", reverse = FALSE, ...) {

colorRampPalette(pal, ...)
}

0 comments on commit 527803a

Please sign in to comment.