Description Usage Arguments Value Examples
View source: R/Module3_functions.R
This function plots map with earthquakes. One or several countries can be chosen.
1 |
data |
Dataset with variables LOCATION_NAME, EQ_PRIMARY (magnitude) and TOTAL_DEATHS for number of deaths. |
annot_col |
Column name to be used for annotations. |
Map plot with interactive labels.
1 2 3 4 5 6 7 8 9 | ## Not run:
# With several countries and popup text
readr::read_delim("signif.txt", delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "ITALY" | COUNTRY == "TURKEY" & 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.