Antonio, Fabio Di Narzo
2006-May-05 11:02 UTC
[Rd] plot.ts bad default labelling and lag.plot incomplete doc
Hi all. I've found that also in R-2.3.0 there is the bad labelling previously found in R-2.2.1. x <- ts(1:3) plot(lag(x,1),x) #labels 1 and 3 are superposed on the first point. plot(lag(x,1),x, xy.labels=as.character (1:2)) #this is ok xy <- ts.intersect(lag(x,1),x) plot(xy[,1],xy[,2]) #this also is ok The same problem is shown by lag.plot, which in turn calls plot.ts. Also note that lag.plot documentation is incomplete for the labels argument. It states: " labels: logical indicating if labels should be used." But in fact it seems it can be used as the 'xy.labels' argument of plot.ts, i.e., it can also be a character vector of labels. Antonio, Fabio Di Narzo. [[alternative HTML version deleted]]