refresher on x ts and the plot f u nction arna u d
play

Refresher on x ts and the plot () f u nction Arna u d Amsellem The R - PowerPoint PPT Presentation

Refresher on x ts and the plot () f u nction Arna u d Amsellem The R Trader VISU AL IZIN G TIME SE R IE S DATA IN R Arna u d Amsellem Q u antitati v e Trader and creator of the R Trader blog Refresher on x ts A special class of object to


  1. Refresher on x ts and the plot () f u nction Arna u d Amsellem The R Trader VISU AL IZIN G TIME SE R IE S DATA IN R Arna u d Amsellem Q u antitati v e Trader and creator of the R Trader blog

  2. Refresher on x ts A special class of object to handle time series eXtensible Time Series x ts = Time Inde x + Matri x The inde x is a time object : Date , POSIX Time , timeDate , chron VISUALIZING TIME SERIES DATA IN R

  3. plot () and plot .x ts () plot() plot.xts() plot() can be u sed instead of plot.xts() w hen the object to be plo � ed is an xts object VISUALIZING TIME SERIES DATA IN R

  4. Using the plot () f u nction plot(my_ts) VISUALIZING TIME SERIES DATA IN R

  5. Using the plot () f u nction plot(my_ts, main = "my first time series") lines(my_ts, col = "red", lwd = 2) VISUALIZING TIME SERIES DATA IN R

  6. Using the plot () f u nction 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

  7. Let ' s practice ! VISU AL IZIN G TIME SE R IE S DATA IN R

  8. Other u sef u l v is u ali z ing f u nctions VISU AL IZIN G TIME SE R IE S DATA IN R Arna u d Amsellem Q u antitati v e Trader and creator of the R Trader blog

  9. Other u sef u l v is u ali z ing f u nctions plot(my_ts, main = "My Stocks") VISUALIZING TIME SERIES DATA IN R

  10. Other u sef u l v is u ali z ing f u nctions plot(my_ts, main = "My Stocks") lines(my_ts2, col = "red") VISUALIZING TIME SERIES DATA IN R

  11. Other u sef u l v is u ali z ing f u nctions plot(my_ts, main = "My Stocks") lines(my_ts2, col = "red") axis(side = 4, at = pretty(my_ts2)) VISUALIZING TIME SERIES DATA IN R

  12. Other u sef u l v is u ali z ing f u nctions plot(my_ts, main = "My Stocks") lines(my_ts2, col = "red") axis(side = 4, at = pretty(my_ts2)) legend(x = "bottomright", legend = c("Stock X", "Stock Y"), col = c("black", "red"), lty = c(1, 1)) VISUALIZING TIME SERIES DATA IN R

  13. abline ()- e x ample abline(v = as.Date("2016-04-14")) VISUALIZING TIME SERIES DATA IN R

  14. abline ()- e x ample abline(v = as.Date("2016-04-14")) abline(h = 1) VISUALIZING TIME SERIES DATA IN R

  15. Other u sef u l v is u ali z ing f u nctions plot(my_ts, main = "My Stocks") lines(my_ts2, col = "red") axis(side = 4, at = pretty(my_ts2)) legend(x = "bottomright", legend = c("Stock X", "Stock Y"), col = c("black", "red"), lty = c(1, 1)) abline(h = 10) VISUALIZING TIME SERIES DATA IN R

  16. Other u sef u l v is u ali z ing f u nctions library(PerformanceAnalytics) period <- c("2014-01/2015-06") chart.TimeSeries(my_ts, period.areas = period, main = "my_ts") VISUALIZING TIME SERIES DATA IN R

  17. Let ' s practice ! VISU AL IZIN G TIME SE R IE S DATA IN R

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend