[R] ggplot bar geom: control the filling in the colour legend

Benoit Boulinguiez benoit.boulinguiez at ensc-rennes.fr
Sat Sep 11 10:27:56 CEST 2010


Sorry my bad, example too simple
try that one out.

ggplot(diamonds, aes(clarity, fill=color,colour = cut)) + 
geom_bar(position = "dodge")

I want change the filling in the "colour" legend, not the filling of the 
bars.

Regards

Le 10/09/2010 20:41, Ista Zahn a écrit :
> ggplot(diamonds, aes(clarity, colour = cut)) + geom_bar(fill="white")
>



More information about the R-help mailing list