Description Usage Arguments Details Value References Examples
A function to create a leaflet map of earthquakes and annotations.
1 |
data |
A cleaned version of a NOAA data frame |
annot_col |
A character. The column of the data frame for which to annotate the pop up window for the selected earthquake. |
eq_map
creates a map with the epicenters
(LATITUDE
& LONGITUDE
) of selected earthquakes and annotates
each point with a pop up window containing annotation data stored in a
column of the data frame (e.g. DATE
)
A leaflet map with earthquakes and annotations.
https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1
1 2 3 4 5 6 7 | ## Not run:
NOAAdf <- eq_clean_data("signif.txt")
NOAAdf %>%
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.