From b5a7fe9c6b79f63cb8f9dc222ddad9ec86392f69 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Tue, 27 Feb 2024 12:15:10 +0100 Subject: [PATCH 1/2] Use `fill_alpha()` instead of `alpha()` --- R/geom-sf.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/geom-sf.R b/R/geom-sf.R index 882da40a64..a4dd6ff344 100644 --- a/R/geom-sf.R +++ b/R/geom-sf.R @@ -202,7 +202,7 @@ sf_grob <- function(x, lineend = "butt", linejoin = "round", linemitre = 10, col <- x$colour %||% defaults$colour[type_ind] col[is_point | is_line] <- alpha(col[is_point | is_line], alpha[is_point | is_line]) fill <- x$fill %||% defaults$fill[type_ind] - fill <- alpha(fill, alpha) + fill <- fill_alpha(fill, alpha) size <- x$size %||% defaults$size[type_ind] linewidth <- x$linewidth %||% defaults$linewidth[type_ind] point_size <- ifelse( From dfdf4f046414c5f08f5517953574c6d16885ba86 Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Tue, 27 Feb 2024 12:15:23 +0100 Subject: [PATCH 2/2] add news bullet --- NEWS.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NEWS.md b/NEWS.md index e6f6dca449..5ac30f57f4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,8 @@ # ggplot2 (development version) +* Patterns and gradients are now also enabled in `geom_sf()` + (@teunbrand, #5716). + # ggplot2 3.5.0 This is a minor release that turned out quite beefy. It is focused on