[R] help with lagged scatterplot

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Aug 7 08:58:39 CEST 2002

Antonio wrote:
> Dear Winfried,
> Thanks!!
> Seems to work fine. So if I had correctly understand, if I want to plot NAO
> vs MEI-6 (6 months earlier) I need to write.
> plot(mei[1:(length(mei)-6)],nao[-(1:6)])
> It's OK?
> As I have negative values for both variables I don't understand your note:
> >(Negativ indices remove values from vectors or
> >matrices.)
> What does it means. My negative values are interfering some way the output?

No. Winfried wrote about the *indices*, not values. He tried to point
you to the "-" in your nao[-(1:6)] , which removes the first 6 values of
Maybe it's a good idea to read "An Introduction to R".

Uwe Ligges
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