Description Usage Arguments Examples
maps earthquakes on a leaflet object
1 | eq_map(eq_data, annot_col)
|
eq_data |
a dataframe containing info on earthquakes. The data frame should have the following columns: LONGITUDE, LATITUDE, EQ_PRIMARY |
annot_col |
the name of the column containing information to show on the map. |
1 2 3 4 5 | ## Not run: readr::read_delim(eq_raw_file, 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.