hadley/ggplot2 — Issue #394: Value-wise override.aes in the guide_legend()
Author: alyst
Created: 2012-02-08 15:55:36+00:00
State: open

For stat_summary() I have mapped both colour and fill to the same variable, therefore I would like to have only one legend with the keys that have both fill and color set according to the aesthetics.

Unfortunately, I don't know if there's a standard way in ggplot2 to combine both fill and colour in one guide, but one workaround would be to support named lists in override.aes, i.e.:
override.aes = list( colour = c( fair = 'red', unfair = 'blue' ) ),
where names are factor levels.