6 October 2016

Background

  • This assignment is a demonstration of the R Markdown and the Leaflet package.
  • In the book "Angels and Demons" by Dan Brown, the protagonist Robert Langdon followed the path of the Illuminati through the different landmarks in Rome.
  • The places identified here were marked using their corresponding latitude and longitude.

Slide with R Output

  • The following is the code used to generate the plot.
  • The latitude and longitude data were stored in a csv file.
  • Red marks were used to distinguish the so-called altars of science
library(leaflet)
Path2<-read.csv("PathIlluminati.csv")
Path2%>%leaflet()%>%addTiles()%>%
  setView(lng = 12.47, lat = 41.9, zoom = 11)%>%
  addCircleMarkers(color=Path2$col,weight=1,radius=20,
  fillOpacity=0.3,popup=Path2$Name)

Slide with Plot

  • The name of the landmark appears when the marker is clicked.