Description Usage Arguments Details Value Examples
Mapping the earthquake epicenters and providing some annotations from NOAA earthquake data
1 | eq_map(mapdata, annot_col = "DATE")
|
mapdata |
A cleaned data frame with data obtained from NOAA website |
annot_col |
The name of the column from the data to be use for annotation |
After downloading, reading and cleaning the dataset from NOAA site, https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1. National Geophysical Data Center / World Data Service (NGDC/WDS): Significant Earthquake Database. National Geophysical Data Center, NOAA. doi:10.7289/V5TD9V7K. The cleaning of the data frame is done with the eq_clean_data() function of this package. The function return a map of the earthquakes epicenters (LATITUDE/LONGITUDE) and annotates each point with
A map of the earthquakes epicenters and providing some annotations
1 2 3 4 5 6 7 | ## Not run:
readr::read_delim("signif.txt", delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = "DATE")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.