Description Usage Arguments Details Value Examples
This function add date, location, magnitude, and total deaths, in an annotation on an interactive map.
1 |
df |
data to plot |
Adds annoations to an interactive map created with eq_map.
Returns an interactive leaflet map with detailed annotations when present
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.