eq_map: Interactive map with earthquakes data

Description Usage Arguments Value Examples

View source: R/hello.R

Description

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.

Usage

1
eq_map(clean_data, annot_col = "DATE")

Arguments

clean_data

The clean earthquake data.

annot_col

Column in clean_data with the annotations

Value

An interactive map.

Examples

1
2
3
4
5
6
7
## Not run: 
readr::read_delim("earthquakes.tsv.gz", delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = "DATE")

## End(Not run)

marioles/rcapstone documentation built on Sept. 16, 2020, 8:23 a.m.