Description Usage Arguments Value Examples
Takes an argument data containing the filtered data frame with earthquakes to visualize. The function maps the epicenters (LATITUDE/LONGITUDE) and annotates each point with in pop up window containing annotation data stored in a column of the data frame.
1 | eq_map(data_map, annot_col = "date")
|
data_map |
A cleaned data frame with data from NOAA website |
annot_col |
The name of the column from the data to be use for annotation |
A map of the earthquakes epicenters and providing some annotations
1 2 3 4 5 6 7 | ## Not run:
readr::read_delim("signif.txt", delim = "\t") %>%
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.