Skip to content

Commit

Permalink
mapPlot linewidth update
Browse files Browse the repository at this point in the history
  • Loading branch information
richardli committed Sep 29, 2024
1 parent 1eae5d5 commit 8df192a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mapPlot.R
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
# }

Expand Down

0 comments on commit 8df192a

Please sign in to comment.