Description Usage Arguments Value Examples
This function generates a leaflet map with circles at each earthquake's location. Should be used with the output of eq_location_clean
, but will work with any dataframe with DATE
, LONGITUDE
, LATITUDE
and MAG
columns.
1 |
data |
dataframe with |
annot_col |
character vector, indicating the column containing information to be displayed inside of the popup. |
A map with earthquakes as circles.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
# Full example.
eq_clean_data() %>%
dplyr::filter(!is.na(TOTAL_DEATHS)) %>%
dplyr::select(DATE, YEAR, COUNTRY, REGION, LONGITUDE, LATITUDE, MAG, TOTAL_DEATHS) %>%
tidyr::drop_na() %>%
dplyr::filter(COUNTRY == "MEXICO" & YEAR >= 2000) %>%
eq_map()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.