Description Usage Arguments Value Examples
This function creates an interactive leaflet map with the earthquake locations.
1 |
data |
A data frame or tibble with spatial coordinates ( |
annot_col |
A column contained in |
An interactive leaflet map with the earthquake locations.
The marker size is proportional to the earthquake magnitude (EQ_PRIMARY
).
When clicking on a marker, a pop-up window will open.
1 2 3 4 5 6 7 | # date pop-up as in figure 1 of module 3
file <- system.file("extdata", "earthquakes.tsv.gz", package = "NOAAeq")
library(magrittr)
readr::read_delim(file = file, delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = "DATE")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.