Description Usage Arguments Value References See Also Examples
eq_create_label
builds a vector combining location, magnitude and deaths for display in map popups
1 |
df |
is the cleaned NOAA data frame after |
a character vector with the combined information location, magnitude and total deaths. This vector can be added to the earthquake data frame to enhance popup display
The NOAA earthquake database https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1 and the data defintions can be found at https://www.ngdc.noaa.gov/nndc/struts/results?&t=101650&s=225&d=225
eq_map
to create the map of earthquake locations and
eq_clean_data
to prepare the NOAA data
1 2 3 4 5 6 7 8 | ## Not run:
readr::read_delim("earthquakes.tsv.gz", delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.