Message-ID: <0ee86ab8-f784-4fc7-93f5-cba74a143161@j9g2000prj.googlegroups.com>
Date: 2011-04-18T11:39:55Z
From: Fred
Subject: plot and lines with time series data
In-Reply-To: <f6f38f41-829a-400a-8940-973c379de964@a21g2000prj.googlegroups.com>
Figure it out. Just make predicted value "ts" object as well.
On Apr 18, 9:20?pm, Fred <jianyun.fred... at gmail.com> wrote:
> Dear all,
>
> I am doing some time series analysis with R now. The problem is, when
> I create a time series object using "ts" function, then after fitting
> the model, the predicted values cannot be plotted with "ts" object
> together using "lines". ie.
>
> ts.series<-ts(x,start, end)
> plot(ts.series)
> lines(predict(fit.model))
>
> This doesn't work.
>
> Does anyone know about how to make it work ?
>
> Thank you very much
>
> ______________________________________________
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.