The goal of capstone is to provide functions for handling earthquake records from the National Centers for Environmental Information, National Oceanic and Atmospheric Administration's (NOAA) - Significant Earthquake Database.
You can install capstone from github with:
# install.packages("devtools")
devtools::install_github("Liddlle/capstone")
With this package you can build beautiful leaflet maps. Try this:
library(capstone)
load(system.file("extdata", "df.rda", package = "capstone"))
df_clean = eq_clean_data(df)
df_clean %>%
dplyr::filter(COUNTRY == "MEXICO" & 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.