Hello, R friends,
 
I'm trying to change colors of my horizontal bars so that they show a sequence.
I chose the ColorBrewer palette "Blues". However the resulting plot doesn't 
show any changes to the default.
I tried several places of "+ scale_colour_brewer(type="seq", pal = "Blues")" 
with no effect.
This is my code:
 
p <- ggplot(data, aes(x = gender))  + 
scale_y_continuous("",formatter="percent") + xlab("Gender") + coord_flip() +    
 scale_colour_brewer(type="seq", pal = "Blues")
p+geom_bar(aes(fill=pet),colour='black',position='fill') 
 
 
Any ideas welcome.
Thanks,
 Mario
        [[alternative HTML version deleted]]

______________________________________________
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