Hi Megh, 

just set the legned position to 'none' using options, by putting
 + opts(legend.position="none") after your code. 

ggplot(diamonds, aes(carat, ..density..)) + 
geom_histogram(binwidth = 0.2, aes(fill = cut)) + 
facet_grid(. ~ cut) + 
opts(legend.position="none")

HTH, 

Matthieu

______________________________________________
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