Description Usage Arguments Value Examples
This function create interactive leaflet map of the location of earthquakes from the NOAA dataset. The size of the circles are proportional to the magnitude of the earthquakes. Pop-up window shows when you click on a circle
1 |
data |
A data frame with NOAA Significant Earthquake Database |
annot_col |
variable for popup display |
map with Earthquakes
1 2 3 4 5 6 | library(dplyr); library(lubridate)
NOAA_quakes%>%
eq_clean_data()%>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.