Hi all,

I'm still seeking for tweaking the appearance of the "color" legend in a bar goemetry with ggplot2.
I can't seem to control the filling of the colour legend squares
take this,
ggplot(diamonds, aes(clarity, fill=color,colour = cut)) + geom_bar(position = "dodge")
and I'd need a white filling in the colour legend, instead of the black one.

Does anyone know how to rule that?

All the best

Le 11/09/2010 10:27, Benoit Boulinguiez a écrit :
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")


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to