Description Usage Arguments Value Examples
Function takes a data frame cleaned with eq_clean_data and creates a leadlet map that plots earthquakes with size based on the magnitude of the earthquake. The function also takes a column name (as a string) to use to create hoverover labels for the point.
1 | eq_map(clean_data_frame, annot_col)
|
clean_data_frame |
Data frame cleaned with eq_clean_data |
annot_col |
Column to be used for creating label |
Leaflet map (technically returns NULL and draws map to plotting object)
1 2 3 4 5 6 | ## Not run:
earthquakes %>% eq_clean_data(LOCATION_NAME) %>%
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.