Description Usage Arguments Details Value Examples
Create interactive html-Earthquake map based on leaflet package
1 |
df |
Raw data frame with columns LONGITUDE, LATITUDE, EQ_PRIMARY |
annot_col |
Column name to use as text for annotations |
This function creas an interactive html map with Earthquake Locations marked with Circles whose radius is proportional to the Earthquake magnitude (EQ_PRIMARY). The text supplied in the annotation column will be displayed upon clicking on a specific Earthquake marker
Interactive map object as defined by the leaflet package
1 2 3 4 5 | ## Not run:
readr::read_delim("results.tsv", delim = "\t") %>% eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>% eq_map(annot_col = "DATE")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.