The goal of EarthquakeAnalysis is to complete the MSDR Capstone project on Coursera.
This capstone project will be centered around a dataset obtained from the U.S. National Oceanographic and Atmospheric Administration (NOAA) on significant earthquakes around the world.
You can install the development version of EarthquakeAnalysis like so:
library(devtools)
install_github("BFavetto/EarthquakeAnalysis")
library(EarthquakeAnalysis)
This is a basic example which shows you how to plot a map with recent earthquakes in Italy:
library(dplyr)
library(ggplot2)
# load the dataset
data("NOAAdata")
NOAAdata %>% eq_clean_data() %>%
eq_location_clean() %>%
filter(Country %in% "ITALY" &
lubridate::year(Date) >= 2000) %>%
eq_map(annot_col = "Date")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.