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

About this list Date view Thread view Subject view Author view Other groups

Subject: Graph followup (was Re: [R] [?] ARIMA in R
From: Paul E Johnson (pauljohn@ukans.edu)
Date: Mon 14 Aug 2000 - 05:52:39 EST


Message-ID: <3996FC87.A22CB79A@ukans.edu>

>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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Thu 01 Feb 2001 - 16:14:19 EST