eq_map: Create an interactive map of earthquake data with labels

Description Usage Arguments Value Examples

Description

This function (eq_map) creates an interactive map of earthquake data using the leaflet function from the leaflet package (leaflet).

Usage

1
eq_map(data, annot_col)

Arguments

data

Name of input data frame on which to apply function.

annot_col

Name of field containing label information.

Value

This function returns an interactive map of the earthquake data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

eq_map_tl <- eq_read_data("signif.txt") %>% 
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>% 
eq_map(annot_col = "DATE")

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)

drsmd23/Eq documentation built on May 14, 2019, 10:33 a.m.