2017-06-24

Assignment instructions

  • 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.

Scatter plot Shots v.s. Time for each Position of worldcup dataset

library(faraway) 
library(plotly)
data(worldcup)
worldcup_scatter <- worldcup %>%
  ggplot(aes(x = Time, y = Shots, color = Position)) +
  geom_point()

Slide with Plot

ggplotly(worldcup_scatter)