Overview:

Earthquakes are classified into categories ranging from minor to great, depending on their magnitude. Earthquakes measuring 8.0 or greater are considered to be the deadliest as they cause the most economical and physical damage. The interactive map below, shows all the earquakes around the world in the last 30 days with 8.0 or greater magnitude.

Load the required packages

library(leaflet)
library(dplyr)

Load and prep the data

df<-read.csv('C:/Users/aao1009/Desktop/earthquake data.csv', header = TRUE, sep = ",")
my_df<-select(df, -c(DateTime, Depth, MagType, NbStations, Gap, Distance, RMS, Source, EventID))
my_df<-subset(my_df, my_df$Magnitude >= '8.0')
head(my_df)
##      Latitude Longitude Magnitude
## 110    -3.132   139.697       8.1
## 1455   18.190  -102.533       8.1
## 1533  -28.117  -176.367       8.1
## 1732  -52.341   160.568       8.2
## 2224  -13.841   -67.553       8.2
## 2266   43.773   147.321       8.1

Map of earthquakes around the world in the past 30 days (Magnitude >= 8.0)

## Assuming "Longitude" and "Latitude" are longitude and latitude, respectively