Description Usage Arguments Value Examples
This function creates detailed labels for the interactive map, so that the pop-up markers include more information (Location name, magnitude of the earthquake and number of victims) about the earthquakes.
1 |
data |
A data frame from the NOAA Significant Earthquakes dataset. |
Character: A vector with the label text
1 2 3 4 5 6 7 | ## Not run: load("data/data.rda")
data %>%
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.