This is the report of the design of a web page using R Markdown that features a plot created with Plotly package. The “airquality” data set is going to be use
Let’s load the packages needed. If you haven’t download them do it first.
library("plotly","ggplot2","airquality")
airquality<-airquality
Let’s create the plot “Wind vs Temperature” using basic plotly commands.
plot_ly(airquality,x=wind,y=~Temp,mode="markers",color =~Day, name = "Wind vs Temperture",size=~Ozone)
#the use of tilde "~" is necesary in most veraibles but not clear. More info:
#https://github.com/ropensci/plotly/issues/765