Trực quan hóa dữ liệu chuỗi thời gian trong R
Arnaud Amsellem
Quantitative Trader and creator of the R Trader blog
Date, POSIX Time, timeDate, chron
plot()plot.xts()plot() thay cho plot.xts() khi đối tượng cần vẽ là 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)
Trực quan hóa dữ liệu chuỗi thời gian trong R