Graph followup (was Re: [R] [?] ARIMA in R

Paul E Johnson pauljohn at
Sun Aug 13 21:52:39 CEST 2000

>From Adrian Trapletti
> > library(ts)
> > data(LakeHuron)
> > arima0(LakeHuron, order=c(2,0,0), xreg=1:98)
> What about
> md <- arima0(LakeHuron, order=c(2,0,0), xreg=1:98)
> plot(LakeHuron)
> lines(LakeHuron-md$resid,col="red")
> Adrian

1 . Why does this work to plot the 2 lines on the same graph?  It seems
like whenever I want to overlay two lines, I have to do
in order to get the second graph on top of the first.

2. Is there any way to scroll through a history of graphs that have
appeared. Often I'm snooping through data and want to compare one graph
with the one before, and it is puzzling that I can't find a way.
Paul E. Johnson                       email: pauljohn at
Dept. of Political Science  
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700
r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at

More information about the R-help mailing list