eq_map: eq_map

Description Usage Arguments Value Examples

View source: R/eq_map.R

Description

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.

Usage

1
eq_map(data_map, annot_col = "date")

Arguments

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

Value

A map of the earthquakes epicenters and providing some annotations

Examples

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)

marcelamu95/earthquakeGeoms documentation built on Nov. 21, 2019, 4:46 a.m.