Description Usage Arguments Value Examples
This function (eq_create_label) creates and applies formatting to the labels for the points on the interactive earthquake map.
1 |
data |
Name of input data frame on which to apply function. |
This function creates labels with formatting for the earthquake data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
eq_map_tl <- eq_read_data("signif.txt") %>%
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")
readr::read_delim("signif.txt", 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.