Description Usage Arguments Value Examples
Function to generate HTML code used in the marker's popup of a leaflet map. It includes date, location, magnitude and total deaths. If any of the variables are NA, it is not displayed
1 |
data |
a data frame from which information is required |
character vector containing HTML code
1 2 3 4 5 6 7 | ## Not run:
eq_clean_data(eq_data()) %>% eq_location_clean() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.