Skip to content

Commit b7715eb

Browse files
authored
Make lwd an alias for linewidth (#5072)
* Replace lwd alias 'size' by 'linewidth' * Add NEWS bullet
1 parent 5f836ab commit b7715eb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ggplot2 (development version)
22

3+
* The `lwd` alias now correctly replaced by `linewidth` instead of `size`
4+
(@teunbrand based on @clauswilke's suggestion #5051).
5+
36
# ggplot2 3.4.0
47
This is a minor release focusing on tightening up the internals and ironing out
58
some inconsistencies in the API. The biggest change is the addition of the

R/ggplot-global.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ggplot_global$all_aesthetics <- .all_aesthetics
3434
"pch" = "shape",
3535
"cex" = "size",
3636
"lty" = "linetype",
37-
"lwd" = "size",
37+
"lwd" = "linewidth",
3838
"srt" = "angle",
3939
"adj" = "hjust",
4040
"bg" = "fill",

0 commit comments

Comments
 (0)