Displaying 1 result from an estimated 1 matches for "frame_model".
2009 Sep 11
1
Simple time series questions
...og="y")
plot(test_date, test_data_baseB,type='l',log="y")
grid()
(Clearly at this point, each chart over-writes the previous one.)
Next I try to get them onto a single chart, sharing the same y-axis. I'm
sure I haven't done this very elegantly, but here goes:
frame_model = data.frame(a=test_date,b=test_data_model)
frame_A = data.frame(a=test_date,b=test_data_baseA)
frame_B = data.frame(a=test_date,b=test_data_baseB)
ts_model = ts(frame_model$b)
ts_a = ts(frame_A$b)
ts_b = ts(frame_B$b)
ts.plot(ts_model,ts_a,ts_b,col=c("blue","red","green&qu...