2023-11-26

Synopsis

This is a week 4 assignment of the Developing Data Products Course of Data Science Specialization by Johns Hopkins University on Coursera.

Creating Plot using Plotly

  1. Yahoo finance Data is used to plot stock variation which time.
  2. Four stocks have been chosen, namely Apple, Amazon, Google, and Microsoft.
  3. The duration of stock price variation is chosen from ‘2021-01-01’ and to ‘2023-01-01’.
## Warning: package 'plotly' was built under R version 4.3.2
## Warning: package 'quantmod' was built under R version 4.3.2
## [1] "AAPL" "AMZN" "GOOG" "MSFT"
## [1] "AAPL.Open"     "AAPL.High"     "AAPL.Low"      "AAPL.Close"   
## [5] "AAPL.Volume"   "AAPL.Adjusted"
## [1] "AMZN.Open"     "AMZN.High"     "AMZN.Low"      "AMZN.Close"   
## [5] "AMZN.Volume"   "AMZN.Adjusted"
## [1] "GOOG.Open"     "GOOG.High"     "GOOG.Low"      "GOOG.Close"   
## [5] "GOOG.Volume"   "GOOG.Adjusted"
## [1] "MSFT.Open"     "MSFT.High"     "MSFT.Low"      "MSFT.Close"   
## [5] "MSFT.Volume"   "MSFT.Adjusted"

Plotting