Description Usage Arguments Value Examples
This function reads in a dataframe with LOCATION_NAME, EQ_PRIMARY, and DEATHS as columns. It then creates and html tagged annotation for use in the leaflet plots.
1 |
data |
A dataframe that contains the columns: LOCATION_NAME, EQ_PRIMARY, and DEATHS |
A character column with html-tagged annotations
1 2 3 4 5 6 | data(earthquake_raw)
earthquake_raw %>%
eq_clean_data() %>%
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.