[R] ggplot2

AlexPiche alexandre.piche at mail.mcgill.ca
Mon Jul 8 14:54:07 CEST 2013

Hello Folks,

I have an other problem with ggplot2. This is what I got so far.

levels(xmelt$Var2) <- c("Outright", "Market Move Adjusted")

ggplot(xmelt, aes(x=factor(Var1),value, row=L1, col=Var2, group=Var2)) + 
geom_bar(stat="identity") + facet_grid(Var2~L1, scale="free") + 
xlab("Maturities") + ylab("Basis Points Move") + theme(legend.position =


And I would like to add something like

 + scale_colour_manual(breaks=c(30,20,15,10,7,5,3,2),

to set different color of grey to different maturity.

Anyone know how I could do this?

Thank you for your time,


View this message in context: http://r.789695.n4.nabble.com/ggplot2-tp4671087.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list