Skip to content

Commit 8b659c2

Browse files
authored
CoordSf takes linewidth instead of size (#5183)
1 parent ab79c96 commit 8b659c2

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
@@ -1,5 +1,7 @@
11
# ggplot2 (development version)
22

3+
* Fixed bug in `coord_sf()` where graticule lines didn't obey
4+
`panel.grid.major`'s linewidth setting (@teunbrand, #5179)
35
* The `datetime_scale()` scale constructor is now exported for use in extension
46
packages (@teunbrand, #4701).
57
* `geom_text()` drops observations where `angle = NA` instead of throwing an

R/coord-sf.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ CoordSf <- ggproto("CoordSf", CoordCartesian,
305305
} else {
306306
line_gp <- gpar(
307307
col = el$colour,
308-
lwd = len0_null(el$size*.pt),
308+
lwd = len0_null(el$linewidth * .pt),
309309
lty = el$linetype
310310
)
311311
grobs <- c(

0 commit comments

Comments
 (0)