lag.plot messy labels default

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

lag.plot messy labels default

Antonio, Fabio Di Narzo
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.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html