R Markdown Presentation & Plotly

Mao Soldevilla

13/11/2020

R Markdown

This is the second project of Developing Data Products Course of Data Science Specialization of John Hopkins University - Coursera.

This Project is to show how to work with plotly.

mpg vs wt per Cylinder

p <- plot_ly(mtcars, x = ~wt, y = ~mpg, type = "scatter", color = ~factor(cyl)) %>%
  layout(title = "mpg vs wt per Cylinder")
p

Surface

terrain <- matrix(sort(rnorm(100*100)), nrow = 100, ncol = 100)
plot_ly(z = ~terrain, type = "surface")