diff --git a/R/tmap_palettes.R b/R/tmap_palettes.R index 69e754ff..ff929188 100644 --- a/R/tmap_palettes.R +++ b/R/tmap_palettes.R @@ -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) }