Skip to content

Commit 9b4d4fe

Browse files
authored
Patterns in geom_sf() (#5717)
* Use `fill_alpha()` instead of `alpha()` * add news bullet
1 parent 6e972c1 commit 9b4d4fe

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* Facet evaluation is better at dealing with inherited errors
77
(@teunbrand, #5670).
88
* Fixed spurious warnings from `sec_axis()` with `breaks = NULL` (#5713).
9+
* Patterns and gradients are now also enabled in `geom_sf()`
10+
(@teunbrand, #5716).
911

1012
# ggplot2 3.5.0
1113

R/geom-sf.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ sf_grob <- function(x, lineend = "butt", linejoin = "round", linemitre = 10,
202202
col <- x$colour %||% defaults$colour[type_ind]
203203
col[is_point | is_line] <- alpha(col[is_point | is_line], alpha[is_point | is_line])
204204
fill <- x$fill %||% defaults$fill[type_ind]
205-
fill <- alpha(fill, alpha)
205+
fill <- fill_alpha(fill, alpha)
206206
size <- x$size %||% defaults$size[type_ind]
207207
linewidth <- x$linewidth %||% defaults$linewidth[type_ind]
208208
point_size <- ifelse(

0 commit comments

Comments
 (0)