Entering edit mode
yanju@liacs.nl
▴
160
@yanjuliacsnl-1786
Last seen 10.2 years ago
Dear all,
I was tring to plot Multiple Time Series using ts.plot. Then I want to
give each time series a color. My code is like follows:
color<-rainbow(ncol(ts))
ts.plot(ts,col=color)
then I got colorful lines, but I dont know which line is corresponding
to
which color. How to settel this problem? and how to add also axes
label?
Regards,
Yanju Zhang
Hello Yanju Zhang, There is a great ggplot2 package that involve many ways to change colors involving good areas that involve lines. Use the ?ggplot line to help!
Regards, Blake Chapman