From 8df192aeddd0f5b1dc94a416cbb32c470208b33c Mon Sep 17 00:00:00 2001 From: Richard Li Date: Sun, 29 Sep 2024 10:51:33 -0700 Subject: [PATCH] mapPlot linewidth update --- R/mapPlot.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/mapPlot.R b/R/mapPlot.R index c94d286..22f50d9 100644 --- a/R/mapPlot.R +++ b/R/mapPlot.R @@ -174,9 +174,9 @@ mapPlot <- function(data = NULL, variables, values = NULL, labels = NULL, geo, b # # sf version # }else{ if(!is.null(cut)){ - g <- g + ggplot2::geom_sf(ggplot2::aes(group = group, fill = cut(value, cut)), color = border, size = size) + ggplot2::coord_sf() + g <- g + ggplot2::geom_sf(ggplot2::aes(group = group, fill = cut(value, cut)), color = border, linewidth = size) + ggplot2::coord_sf() }else{ - g <- g + ggplot2::geom_sf(ggplot2::aes(group = group, fill = value), color = border, size = size) + ggplot2::coord_sf() + g <- g + ggplot2::geom_sf(ggplot2::aes(group = group, fill = value), color = border, linewidth = size) + ggplot2::coord_sf() } # }