Skip to content

Commit 65030f5

Browse files
committed
<GeomBar> doesn't inherit optional_aes
1 parent 6dc3ba8 commit 65030f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/geom-bar.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ geom_bar <- function(mapping = NULL, data = NULL,
129129
GeomBar <- ggproto("GeomBar", GeomRect,
130130
required_aes = c("x", "y"),
131131

132+
optional_aes = character(),
133+
132134
# These aes columns are created by setup_data(). They need to be listed here so
133135
# that GeomRect$handle_na() properly removes any bars that fall outside the defined
134136
# limits, not just those for which x and y are outside the limits

0 commit comments

Comments
 (0)