Skip to content

Commit 36d5b07

Browse files
Make guide_bins() respect override.aes (#4104)
* Pass orverride.aes in guide_bins() * Add a NEWS item
1 parent 2d54ee9 commit 36d5b07

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ It further changes the licensing model of ggplot2 to an MIT license.
4747

4848
* Update tests to work with the new `all.equal()` defaults in R >4.0.3
4949

50+
* Fixed a bug that `guide_bins()` mistakenly ignore `override.aes` argument
51+
(@yutannihilation, #4085).
52+
5053
# ggplot2 3.3.2
5154
This is a small release focusing on fixing regressions introduced in 3.3.1.
5255

R/guide-bins.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ guide_bins <- function(
116116

117117
# general
118118
direction = direction,
119+
override.aes = rename_aes(override.aes),
119120
default.unit = default.unit,
120121
reverse = reverse,
121122
order = order,

0 commit comments

Comments
 (0)