如何在x轴上添加日期而不是十进制数?
dates<-seq(from=as.Date("2000/7/1"), by="month", length.out=18)
y<-rnorm(18,20,3)
myts<-ts(data=y,
start=c(as.numeric(format(min(dates),"%Y")),
as.numeric(format(min(dates),"%m"))),
frequency=12,
deltat=1/12)
plot(myts,ylab='Y',xlab='Date',type='l')
谢谢和亲切的问候