Description Usage Arguments Value Examples
Created description of the earthquake next to the graph
1 | eq_create_label(map_data)
|
map_data |
A cleaned data frame with data obtained from NOAA website |
An HTML label that can be used as the annotation text in the leaflet map.
1 2 3 4 5 6 7 8 9 | ## Not run:
readr::read_delim("signif.txt", delim = "\t") %>%
eq_clean_data() %>%
eq_location_clean() %>%
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.