November 6, 2016

USGS Data Mp

An interactive map displaying all earthquake events as registered by the USGS has been made available as a peer graded assignment for Coursera's Data Products course.

Data Processing

Original data is loaded dynamically from the source. with the following code

rawData <- read.csv('https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_month.csv', stringsAsFactor = F)
displayData <- rawData %>%
  select(Magnitude = mag, Time = time, Latitude = latitude, Longitude = longitude, Id = id)

Some notes:

  • Data source is updated every 15 minutes, thus, data size will vary every time the app is run.
  • At this moment, 7969 records need to be loaded and processed so initial load time might be a tad slow.
  • A graph with all unfiltered data is then produced and displayed by default. It is shown next

Graph

To Do