2/25/2017

Goal

Create a web page presentation using R Markdown that features a plot created with Plotly. Webpage must contain the date that you created the document, and it must contain a plot created with Plotly.

The rubric contains the following two questions:

  • Does the web page feature a date and is this date less than two months before the date that you're grading this assignment?
  • Is the web page a presentation and does it feature an interactive plot that appears to have been created with Plotly?

Getting data

library(plotly)
library(tidyr)
library(dplyr)



### Getting EU stock market data
data("EuStockMarkets")



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

Stock Prices