Description Usage Arguments Value Examples
function to generate pop-up markers on map
1 | eq_create_label(eq_map_clean = NULL)
|
eq_map_clean |
the cleaned earthquake data file for mapping |
a character vector that is used as pop-up text on the leaflet map from the eq_map function
1 2 3 4 5 6 | ## 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.