Description Usage Arguments Details Value Examples
eq_create_label creates a more informative popup using HTML tags to be used as labels in eq_map.
1 |
data |
The earthquake clean data frame. |
This function put together a character string for each earthquake to be used as a more informative label. The label contains the following items:
Location
Magnitude
Total Deaths
A character vector using HTML tags to be used as label for labelcolumn variable.
1 2 3 4 5 6 7 8 9 | ## Not run:
load_raw_data() %>%
eq_clean_data() %>%
eq_location_clean() %>%
dplyr::filter(Country %in% c("HONDURAS", "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.