Description Usage Arguments Value Examples
This function creates HTML to be displayed in the pops generated by the eq_map
function.
1 |
data |
dataframe with |
vector containing HTML
1 2 3 4 5 6 7 8 9 10 | ## Not run:
eq_clean_data() %>%
dplyr::filter(!is.na(TOTAL_DEATHS)) %>%
dplyr::select(DATE, YEAR, COUNTRY, REGION, LONGITUDE, LATITUDE, MAG, TOTAL_DEATHS) %>%
tidyr::drop_na() %>%
dplyr::filter(COUNTRY == "MEXICO" & YEAR >= 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.