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

Paul E Johnson pauljohn at ukans.edu
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
 par("new"=TRUE)
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 ukans.edu
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list