Visualizing Time Series Data in R
Arnaud Amsellem
Quantitative Trader and creator of the R Trader blog
Date
, POSIX Time
, timeDate
, chron
plot()
plot.xts()
plot()
can be used instead of plot.xts()
when the object to be plotted is an xts
objectplot(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)
Visualizing Time Series Data in R