Skip to content

simple ts plot question

1 message · Brian Ripley

#
Use cbind, or use ts.plot. Examples:

data(nottem)
ts1.ts <-  window(nottem, end=c(1936,12))
ts2.ts <-  window(nottem, start=c(1930,1))+15
plot(cbind(ts1.ts, ts2.ts))
plot(cbind(ts1.ts, ts2.ts), plot.type="single")
ts.plot(ts1.ts, ts2.ts)  # same as above

See help on plot.ts and ts.plot