- Create a web page presentation using R Markdown.
- Presentation should include a plot generated by plotly.
- The presentation should be hosted on Rpubs, GitHub, or Neocities.
Sanjaya J Shetty
library(plotly)
plot <- plot_ly(data = mtcars, x=~cyl, y=~mpg, type = "box" )%>%
layout(title = "Relationship between Number of Cylinder and Miles per Gallon",
xaxis = list(title = "Number of cylinder"),
yaxis = list(title = " Miles per Gallon"),
showlegend = FALSE)
htmlwidgets::saveWidget(as_widget(plot), file = "demo.html")