Skip to content
Prev 349157 / 398498 Next

ggplot2 help

Hi Glenn,
I think it may be your column names. When I substitute the following for
the last three sections of your example, I get a plot that looks correct.
Obviously I have just made up the colors.

colnames(BO.Vector) <- c("LoanAge", "minus05", "minus04", "minus03",
"minus02", "minus01")
plot(BO.Vector$LoanAge,BO.Vector$minus05,type="l",col=5)
lines(BO.Vector$LoanAge,BO.Vector$minus04,col=4)
lines(BO.Vector$LoanAge,BO.Vector$minus03,col=3)
lines(BO.Vector$LoanAge,BO.Vector$minus02,col=2)
lines(BO.Vector$LoanAge,BO.Vector$minus01,col=1)

Jim


On Mon, Mar 16, 2015 at 8:41 AM, Thierry Onkelinx <thierry.onkelinx at inbo.be>
wrote: