eq_map: eq_map

Description Usage Arguments Value Examples

Description

A function to generate an interactive map showing earthquakes. The user specifies a column from the data which the earthquake is to be annotated by eg DATE.

Usage

1
eq_map(dt, annot_col)

Arguments

dt

A data table containing NOAA Earthquake data cleaned

annot_col

A column found in eq_data to annotate earthquake marker

Value

An interactive map displaying earthquate location for a given country with user defined popup.

Examples

1
2
3
4
5
6
7
## Not run: 
library(dplyr)
library(lubridate)
dt <- eq_clean_data %>% filter(COUNTRY == "MEXICO" & lubridate::year(date) >= 2000)
eq_map(dt, annot_col="DATE")

## End(Not run)

Grandez/earthquake documentation built on May 28, 2019, 12:39 p.m.