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]]

