Skip to content

Commit

Permalink
fixed #772
Browse files Browse the repository at this point in the history
  • Loading branch information
mtennekes committed Sep 14, 2023
1 parent 79daafb commit 3e6ceef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/tmap_palettes.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
getPal = function(name, n = NA, rep = TRUE, range = NA) {
if (name %in% c("cat", "seq", "div")) {
name = cols4all::c4a_options("defaults")$defaults[[name]]
}
cols4all::c4a(name, n = n, nm_invalid = {if (rep) "repeat" else "interpolate"}, range = range)
}

Expand Down

0 comments on commit 3e6ceef

Please sign in to comment.