在 R 視覺化時間序列資料
Arnaud Amsellem
Quantitative Trader and creator of the R Trader blog
Date、POSIX Time、timeDate、chron
plot()plot.xts()xts 時,可用 plot() 取代 plot.xts()
plot(my_ts)

plot(my_ts, main = "my first time series")
lines(my_ts, col = "red", lwd = 2)

plot(my_ts, main = "my first time series",
sub = "from Sep. 2008 to Dec. 2016")
lines(my_ts, col = "red", lwd = 2)
在 R 視覺化時間序列資料