-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Milestone
Description
Controlling the appearance of the geoms within a scale_size_binned legend using guide_bins() doesn't seem to operate in the same fashion as guide_legend() - or rather, there appears to be no overriding the aes() despite the documentation implying no difference.
To illustrate, this:
ggplot(mtcars, aes(x = drat, y = wt, size = hp, fill = cyl)) +
geom_point(shape = 21) +
scale_size_binned(guide = guide_legend(override.aes = list(colour = "red", shape = 21, fill = "blue")))...works as expected, while this:
ggplot(mtcars, aes(x = drat, y = wt, size = hp, fill = cyl)) +
geom_point(shape = 21) +
scale_size_binned(guide = guide_bins(override.aes = list(colour = "red", shape = 21, fill = "blue")))...does not.