March 6, 2019

Instruction

Create a web page presentation using R Markdown that features a plot created with Plotly. Host your webpage on either GitHub Pages, RPubs, or NeoCities. Your webpage must contain the date that you created the document, and it must contain a plot created with Plotly.

Multi Line Graph

Load EuStockMarkets dataset and use plotly package to create a plot

library(plotly)
library(tidyr)
library(dplyr)
data('EuStockMarkets')

stocks <- as.data.frame(EuStockMarkets) %>%
  gather(index, price) %>%
  mutate(time = rep(time(EuStockMarkets),4))

Plot