4 October 2016

Background

  • The following map focuses on the island of Panay in the Philippines
  • Seven interesting sites have been identified
  • The latitude and longitude values of these sites are stored in a csv file

Slide with R Output

library(leaflet)
lat2<-read.csv("latitude2.csv")
lat2%>%leaflet()%>%addTiles()%>%
  addCircleMarkers(color=lat2$col,weight=1,radius=20,
  fillOpacity=0.1,popup=lat2$name)

Slide with Plot

## Assuming 'lng' and 'lat' are longitude and latitude, respectively