Victor D. Saldaña C.

PhD(c) in Geoinformatics Engineering
Technical University of Madrid (Spain)
November 12, 2016

Summary.

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

1. Load packages.

Let’s load the packages needed. If you haven’t download them do it first.

library("plotly","ggplot2","airquality")
airquality<-airquality

2. Plot created with Plotly.

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