由买买提看人间百态

topics

全部话题 - 话题: new1x
(共0页)
g*******y
发帖数: 380
1
来自主题: Statistics版 - R question: how to change the label of Ylab?
I used following code to plot time series:
new1x=out$res
new1x=ts(new1x, start=c(1600,1),frequency=1)
plot(new1x, xlab='Year AD', main="Time series")
New1x has six columns which called y1, y2, y3,..., y6.
How can I revise the above code to change the label of each ylab? such as y1
<-Tommy, y2<-Johnny,..., y6<-Terry.
Thank you in advance!
(共0页)