Skip to content

Commit

Permalink
<GeomBar> doesn't inherit optional_aes
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Apr 24, 2024
1 parent 6dc3ba8 commit 65030f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/geom-bar.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ geom_bar <- function(mapping = NULL, data = NULL,
GeomBar <- ggproto("GeomBar", GeomRect,
required_aes = c("x", "y"),

optional_aes = character(),

# These aes columns are created by setup_data(). They need to be listed here so
# that GeomRect$handle_na() properly removes any bars that fall outside the defined
# limits, not just those for which x and y are outside the limits
Expand Down

0 comments on commit 65030f5

Please sign in to comment.