We are curious about earthquake data and want to make visualizations in order to understand the data better.

library(tidyverse)
## ── Attaching packages ────────────────────────────────────────────────────────────────────── tidyverse 1.2.1 ──
## ✔ ggplot2 3.2.1     ✔ purrr   0.3.2
## ✔ tibble  2.0.1     ✔ dplyr   0.7.8
## ✔ tidyr   0.8.2     ✔ stringr 1.4.0
## ✔ readr   1.3.1     ✔ forcats 0.3.0
## Warning: package 'ggplot2' was built under R version 3.5.2
## Warning: package 'tibble' was built under R version 3.5.2
## Warning: package 'purrr' was built under R version 3.5.2
## Warning: package 'stringr' was built under R version 3.5.2
## ── Conflicts ───────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
library(ggplot2)
EarthquakeData <- read.csv(file="all_month.csv", header=TRUE, sep=",")
ggplot(data = EarthquakeData) +
   borders("world", xlim = c(-180, 180), ylim = c(-90, 90)) +
    geom_point(mapping = aes(x = longitude, y = latitude, color = mag)) 

We notice that there are far more earthquakes on coasts than landlocked countries in the middle of the continents. We also see a lot of earthquakes on the Atlantic Ocean and Indian Ocean. Seems like Africa, Greenland, Russia, and Australia don’t have much earthquakes at all. The United States, Alaska, Peru, Chile, Europe, and Indonesia have most of the earthquakes in the world. We see the west side of the United States has more earthquakes than the east side. The darker blue means the magnitude was higher, and the lighter blue means the magnitude is lower. We see that earthquakes in the United States and Alaska are less severe than earthquakes in Chile, Peru, Europe, and areas near Indonesia. We realize that earthquakes happen in some areas more than others because there are tectonic plates in that region. If you want to absolutely avoid earthquakes, it might be a good idea to move somewhere that has no blue dots at all.