Description Usage Arguments Value Examples
eq_map
creates an interactive map
(leaflet
) of earthquakes.
1 | eq_map(.df, annot_col)
|
.df |
(data.frame) earthquake data (NOAA) |
annot_col |
(chr) name of the column used for the annotation. |
(leaflet) of earthquakes and annotations.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
library(dplyr)
library(lubridate)
library(devrcap)
library(lubridate)
data(noaa)
noaa %>%
eq_clean_data() %>%
filter(
country %in% c("ITALY", "GREECE", "PORTUGAL"),
year(date) >= 1900
) %>%
eq_map("location_name")
noaa %>%
eq_clean_data %>%
dplyr::filter(country == "MEXICO", year(date) >= 2000) %>%
eq_map("date")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.