Skip to content
Prev 5776 / 398506 Next

[?] ARIMA in R

I am using R version 1.0.1 both under Linux and Windows 98.

A simple question: After fitting an ARIMA model, how can I 
plot in the same graph both the original series (solid line, 
say) and the fitted values implied by the estimated model 
(dotted line, say)? 

Example: 

library(ts)
data(LakeHuron)
arima0(LakeHuron, order=c(2,0,0), xreg=1:98)

How can I plot both the original series (LakeHuron) and the 
fitted values in the same graph? 

Thank you in advance. Francisco.