Description Usage Arguments Value Examples
Create labels for an earthquake location map
1 |
df |
An NOAA earthquake dataframe, with information on locations, magnitude and death toll of earthquakes. |
An HTML-like column vector with information for the map popups.
1 2 3 4 | library(dplyr)
eq_data %>% eq_clean_data() %>% eq_location_clean() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
mutate(popup_text = eq_create_label(.)) %>% eq_map(annot_col = popup_text)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.