From 3e6ceefabac1b26cd0c2d56b90463c56372ebba8 Mon Sep 17 00:00:00 2001 From: mtennekes Date: Thu, 14 Sep 2023 10:55:22 +0200 Subject: [PATCH] fixed #772 --- R/tmap_palettes.R | 3 +++ 1 file changed, 3 insertions(+) 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) }