Description Usage Arguments Value Examples
This function takes an argument data containing the filtered data frame with earthquakes to visualize. The function maps the epicenters (LATITUDE/LONGITUDE) and annotates each point with in pop up window containing annotation data stored in a column of the data frame.
1 |
data |
Filtered dataframe of NOAA earthquakes dataset |
annot_col |
Column name from dataset used for the annotation in the pop-up |
leaflet MAP shown with a circle markers, and the radius of the circle marker is proportional to the earthquake's magnitude.
1 2 3 4 5 6 7 8 | ## Not run:
eq_map(eq_clean_data, annot_col = "DATE")
eq_data %>%
dplyr::filter(COUNTRY %in% COUNTRIES & 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.