From 3783bbb2ec5a1ba560dd023c118ba474eba8fd94 Mon Sep 17 00:00:00 2001 From: mtennekes Date: Wed, 18 Oct 2023 10:56:37 +0200 Subject: [PATCH] fixed #796 --- R/tmapGridLegend.R | 2 +- R/tmap_options.R | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/R/tmapGridLegend.R b/R/tmapGridLegend.R index c86a7bc0..fb3197f5 100644 --- a/R/tmapGridLegend.R +++ b/R/tmapGridLegend.R @@ -50,7 +50,7 @@ tmapGridCompCorner = function(comp, o, stack, pos.h, pos.v, maxH, maxW, offsetIn scaleH = legHin / maxH # because of legend frames (for which margins are added in tmapGridLegend), the scale may be a bit above 1, even though automatic layout is applied and there is enough space - if (any(scaleW > 1.05) || any(scaleH > 1.05)) warning("Some legend items or map compoments do not fit well (e.g. due to the specified font size).", call. = FALSE) + if (any(scaleW > 1.1) || any(scaleH > 1.1)) warning("Some legend items or map compoments do not fit well (e.g. due to the specified font size).", call. = FALSE) clipW = pmax(1, scaleW) clipH = pmax(1, scaleH) diff --git a/R/tmap_options.R b/R/tmap_options.R index 6887d7d6..9209e9a0 100644 --- a/R/tmap_options.R +++ b/R/tmap_options.R @@ -329,6 +329,7 @@ title.frame.r = 2, title.stack = "vertical", title.position = tm_pos_out(cell.h = "center", cell.v ="top", pos.h = "left", pos.v = "top", align.h = "left", align.v = "top", just.h = "left", just.v = "bottom"), + title.width = NA, title.group.frame = TRUE, title.resize.as.group = FALSE,