Description Usage Arguments Value Examples
This function (eq_map) creates an interactive map of earthquake data using the leaflet function from the leaflet package (leaflet
).
1 |
data |
Name of input data frame on which to apply function. |
annot_col |
Name of field containing label information. |
This function returns an interactive map of the earthquake data.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
eq_map_tl <- eq_read_data("signif.txt") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = "DATE")
readr::read_delim("signif.txt", 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.