From 0e3d893ef5762341b4b894b788c19aeffa620a34 Mon Sep 17 00:00:00 2001 From: mtennekes Date: Mon, 10 Jun 2024 22:55:57 +0200 Subject: [PATCH] num (general purpose vv) added to tmap_options --- R/tmap_options.R | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/R/tmap_options.R b/R/tmap_options.R index 6d063eb1..1764cf78 100644 --- a/R/tmap_options.R +++ b/R/tmap_options.R @@ -81,7 +81,8 @@ tmapMode = function(id, name, ...) { fill_alpha = 1, col_alpha = 1, bgcol_alpha = 1, - angle = 0), + angle = 0, + num = 1), value.na = list( fill = "grey75", col = "grey75", @@ -110,7 +111,8 @@ tmapMode = function(id, name, ...) { col_alpha = 1, bgcol_alpha = 1, size = 0.2, - angle = 0 + angle = 0, + num = 0 ), value.blank = list( fill = "#00000000", @@ -123,7 +125,8 @@ tmapMode = function(id, name, ...) { fill_alpha = 0, col_alpha = 0, bgcol_alpha = 0, - angle = 0 + angle = 0, + num = 0 ), values.var = list(fill = list(seq = "hcl.blues3", div = "pu_gn_div", unord = "tol.muted", ord = "hcl.blues3", cyc = "tol.rainbow_pu_rd", biv = "pu_gn_bivs"), @@ -144,10 +147,11 @@ tmapMode = function(id, name, ...) { area = c(0, 1), xmod = c(0, 1), ymod = c(0, 1), - angle = c(0, 360)), + angle = c(0, 360), + num = c(0, 1)), values.range = list(fill = NA, col = NA, size = c(0, 1), lwd = c(0, 1), lty = NA, text = NA, fontface = NA, fill_alpha = NA, - col_alpha = NA, shape = NA, angle = NA), # NA = automatic, NULL is not applicable + col_alpha = NA, shape = NA, angle = NA, num = c(0,1)), # NA = automatic, NULL is not applicable value.neutral = list(size = 0.75, lwd = 2, lty = "solid", @@ -156,7 +160,8 @@ tmapMode = function(id, name, ...) { bgcol_alpha = 1, text = "Abc", fontface = "plain", - angle = 0), + angle = 0, + num = 1), values.scale = list( 1, lwd.lines = 1,