Introduction

In this assignment,

  1. A webpage is created by R Markdown that features a plot using Plotly.
  2. The webpage is hosted on RPubs.
  3. The webpage contains the date that the document is created and a plot created with Plotly.

The Interactive Plots presented in this Assignment is depicting

Load Necessary Libraries & Data Processing

library(plotly)
library(tidyr)
library(dplyr)
data("EuStockMarkets")
stocks <- as.data.frame(EuStockMarkets) %>% gather(index, price) %>% 
    mutate(time = rep(time(EuStockMarkets), 4))
plot_ly(stocks, x = ~time, y = ~price, color = ~index, mode = "lines")

Plot Interactive Plotly