help with lagged scatterplot
Hi! I'm not sure, if I understand you correctly, you want to plot nao at time t against mei at time t-h. So lag.plot is not the right function because it plots e.g. nao(t) against nao(t-h). Well, something along the lines attach(data) plot(mei[1:(length(mei)-h)],nao[-(1:h)]) should do what you want. (Negativ indices remove values from vectors or matrices.) Regards, Winfried
On 06-Aug-02 Antonio wrote:
Hi, How do I can make a lagged scatterplot of two variables: Yt (nao) versus Xt-h (mei) if they have the following structure:
series
mei nao
Jan 1950 -1.036 0.55
Feb 1950 -1.133 3.31
Mar 1950 -1.259 0.81
Apr 1950 -1.027 1.60
May 1950 -1.399 -1.73
Jun 1950 -1.366 1.26
Jul 1950 -1.300 -0.87
.
.
.
I've tried with lag.plot but I don't understanf how to use it
Thanks in advance
Antonio Rodriguez
CICEM Agua del Pino
Huelva, Spain
Antonio RodrÃguez Verdugo
Huelva, Spain
yerupaja01 at terra.es
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_
--------------------------------------------------------------------- E-Mail: Winfried Theis <theis at statistik.uni-dortmund.de> Date: 06-Aug-02 Dipl.-Math. Winfried Theis SFB 475, Fachbereich Statistik, Universit"at Dortmund, 44221 Dortmund Tel.: +49-231-755-5903 FAX: +49-231-755-4387 ---------------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._