Skip to content
Prev 315570 / 398503 Next

Getting discrete colors on plot

On 01/18/2013 04:02 AM, Mary wrote:
Hi Mary,
I'm not exactly sure what you are doing with the "melt" function, but does:

matplot(mydata$id,mydata[,2:6],col=mydata$colorvar+1,type="l")

give you something like what you want?

Jim