Dec 3,2020

Objective of the project

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

Code : How the power of engine influence the fuel usage

library(plotly) library(ggplot2) plot_ly(mtcars, x=~hp, y=mpg,type=“scatter”,color=factor(cyl),size=~hp)%>% layout(title=‘hp vs mpg’)

Graphic

Conclusion

between mpg and hp exist a inverse relationship.