Description Usage Arguments Value Examples
This function creates a leaflet map of the significant earthquake data provided and includes a popup showing the value of the character vector provided. The size of the circle marker is based on the magnitude of the earthquake.
1 |
data |
|
annot_col |
default 'DATE'; character vector to use for circle marker popup; See |
Returns a Leaflet map widget of the earthquake data.
1 2 3 4 5 6 | ## Not run: sample_eq %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.