Description Usage Arguments Value Examples
A function to generate a custom popup box for a selected earthquake showing location, magnitude and total deaths.
1 | eq_create_label(eq_data)
|
eq_data |
A data table containing NOAA Earthquake data |
An interactive map displaying earthquate location for a given country with custom popup.
1 2 3 4 5 | library(dplyr)
eq_clean_data(eq_data_raw) %>%
eq_location_clean() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(date) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>% eq_map(annot_col="popup_text")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.