-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed as not planned
Labels
Description
As the title says, it seems that geom_bar does not interact with scale_fill_binned. I'm assuming this is because the fill aesthetic is ignored if a continuous variable is passed.
I'm not sure if there are any other geoms that would have a similar issue.
#Fill is ignored
ggplot(mpg) +
geom_bar(aes(displ, fill = cty)) +
scale_x_binned() +
scale_fill_binned()
#likely result expected
ggplot(mpg) +
geom_bar(aes(displ, fill = cut(cty, seq(8,38,6)))) +
scale_x_binned()