[R] problem on plotting ts data

Rui Barradas ruipbarradas at sapo.pt
Wed Jan 4 18:32:17 CET 2012


Hello,

Try 'as.vector' or 'as.numeric'

x <- as.ts(rnorm(20))
y <- as.ts(rnorm(20))
plot(x)

plot(as.vector(lag(x,-9)),as.vector(y),type="p")             # works
plot(as.numeric(lag(x,-9)),as.numeric(y),type="p")      # also works

Rui Barradas



--
View this message in context: http://r.789695.n4.nabble.com/problem-on-plotting-ts-data-tp4261865p4262106.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list