Description Usage Arguments Value Examples
This function creates an interactive map that shows the location of the earthquakes in the NOAA Significant Earthquakes dataset. The locations are depicted in circular markers which pop-up more information about the earthquakes, if selected.
1 |
data |
A data frame from the NOAA Significant Earthquakes dataset. |
annot_col |
The column of the data frame to display informations from when a marker is poped-up. |
An object of class "leaflet" (An interactive map)
1 2 3 4 5 6 | ## Not run: load("data/data.rda")
data %>%
eq_clean_data() %>%
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.