Skip to content

Commit a3e79d7

Browse files
authored
Drop weight aesthetic quietly in stat_smooth() (#5071)
* Fix #5053 * Add NEWS bullet
1 parent b7715eb commit a3e79d7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
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 spurious warning when `weight` aesthetic was used in `stat_smooth()`
4+
(@teunbrand based on @clauswilke's suggestion, #5053).
35
* The `lwd` alias now correctly replaced by `linewidth` instead of `size`
46
(@teunbrand based on @clauswilke's suggestion #5051).
57

R/stat-smooth.r

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,5 +182,7 @@ StatSmooth <- ggproto("StatSmooth", Stat,
182182
flip_data(prediction, flipped_aes)
183183
},
184184

185+
dropped_aes = c("weight"),
186+
185187
required_aes = c("x", "y")
186188
)

0 commit comments

Comments
 (0)