From 19bd498fd1fe4974d33f6af00f0d7e1c75ef2fa0 Mon Sep 17 00:00:00 2001 From: mtennekes Date: Tue, 26 Sep 2023 19:37:44 +0200 Subject: [PATCH] implemented log10_pretty --- R/tm_layers_lines.R | 2 +- R/tm_layers_polygons.R | 2 +- R/tm_layers_raster.R | 2 +- R/tm_layers_symbols.R | 2 +- R/tm_layers_text.R | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/R/tm_layers_lines.R b/R/tm_layers_lines.R index b056a7cd..fc943b47 100644 --- a/R/tm_layers_lines.R +++ b/R/tm_layers_lines.R @@ -109,7 +109,7 @@ tm_lines = function(col = tm_const(), label.format = imp("legend.format", list())) col.scale.args$fun_pref = if (style == "cat") { "categorical" - } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails")) { + } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails", "log10_pretty")) { "intervals" } else if (style == "cont") { "continuous" diff --git a/R/tm_layers_polygons.R b/R/tm_layers_polygons.R index 00acaca3..c4b29404 100644 --- a/R/tm_layers_polygons.R +++ b/R/tm_layers_polygons.R @@ -158,7 +158,7 @@ tm_polygons = function(fill = tm_const(), label.format = imp("legend.format", list())) fill.scale.args$fun_pref = if (style == "cat") { "categorical" - } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails")) { + } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails", "log10_pretty")) { "intervals" } else if (style == "cont") { "continuous" diff --git a/R/tm_layers_raster.R b/R/tm_layers_raster.R index 6acbe153..d5c4ea22 100644 --- a/R/tm_layers_raster.R +++ b/R/tm_layers_raster.R @@ -109,7 +109,7 @@ tm_raster = function(col = tm_shape_vars(), label.format = imp("legend.format", list())) col.scale.args$fun_pref = if (style == "cat") { "categorical" - } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails")) { + } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails", "log10_pretty")) { "intervals" } else if (style == "cont") { "continuous" diff --git a/R/tm_layers_symbols.R b/R/tm_layers_symbols.R index d828da06..45f48176 100644 --- a/R/tm_layers_symbols.R +++ b/R/tm_layers_symbols.R @@ -266,7 +266,7 @@ v3_symbols = function(args, args_called) { label.format = imp("legend.format", list())) fill.scale.args$fun_pref = if (style == "cat") { "categorical" - } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails")) { + } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails", "log10_pretty")) { "intervals" } else if (style == "cont") { "continuous" diff --git a/R/tm_layers_text.R b/R/tm_layers_text.R index 4a3c0fb9..530951ca 100644 --- a/R/tm_layers_text.R +++ b/R/tm_layers_text.R @@ -142,7 +142,7 @@ tm_text = function(text = tm_const(), label.format = imp("legend.format", list())) col.scale.args$fun_pref = if (style == "cat") { "categorical" - } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails")) { + } else if (style %in% c("fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", "jenks", "dpih", "headtails", "log10_pretty")) { "intervals" } else if (style == "cont") { "continuous"