Description Usage Arguments Value Examples
This function will create a leaflet map of selected earthquakes.
1 |
data |
the cleaned earthquake data from eq_clean_date(getData()) |
annot_col |
A character. The name of the column in the data that should be used as descriptor. |
A leaflet map with earthquakes and annotations.
1 2 3 4 5 6 7 | ## Not run:
eq_clean_data(getData()) %>%
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.