[R] lag.plot messy labels default

Antonio, Fabio Di Narzo antonio.fabio at gmail.com
Sat Feb 18 19:57:17 CET 2006


Hi all.
Using R 2.2.1 I have encountered the following trivial problem with lag.plot.

lag.plot(1:3)

produces a labelled, directed lines "lag plot". But labels are taken to be
as.character(1:3)
so x-y coordinates for the last label have to be recycled, and one
actually sees on the screen labels "1" and "3" overlapping. Typing:

lag.plot(1:3, labels=as.character(1:2))

solves the problem. Of course, the problem is there for univariate
time series of any length (just tried some values:D ).

Have a nice week end,
Antonio, Fabio Di Narzo.




More information about the R-help mailing list