May 16, 2017

Summary Slide

In this project, our goal is to create a web page presentation using R Markdown that features a plot created with Plotly. The webpage is hosted on RPubs. I chose to keep echo TRUE to show to source code. The slide has the following two items:

  • Date (printed on the title page)
  • An interactive plot

Interactive plot

require(plotly)
plot_ly(mtcars, x = mtcars$disp, y = mtcars$mpg, mode = "markers", 
        color = as.factor(mtcars$cyl), size = mtcars$wt)