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

Benoit Boulinguiez benoit.boulinguiez at ensc-rennes.fr
Fri Sep 10 20:24:31 CEST 2010


Hi all,

Is it possible to change the filling of the squares used to represent 
the colour legend in a bar plot with ggplot?

in this example, fillings are raven black, I'd like them white.

ggplot(diamonds, aes(clarity, colour = cut)) + geom_bar()

Regards

-- 
-------------
Benoit Boulinguiez
Ph.D student
Ecole de Chimie de Rennes (ENSCR) Bureau 1.20
Equipe CIP UMR CNRS 6226 "Sciences Chimiques de Rennes"
Avenue du Général Leclerc
CS 50837
35708 Rennes CEDEX 7
Tel 33 (0)2 23 23 80 83
Fax 33 (0)2 23 23 81 20
http://www.ensc-rennes.fr/



More information about the R-help mailing list