eq_map: eq_map

Description Usage Arguments Value Examples

View source: R/earthquake.R

Description

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

Usage

1
eq_map(eq_data, annot_col)

Arguments

eq_data

A data table containing NOAA Earthquake data

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
library(dplyr)
library(lubridate)
eq_clean_data(eq_data_raw) %>%
   dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(date) >= 2000) %>% eq_map(annot_col="date")

Moonglum8/rEarthquake documentation built on July 17, 2020, 5:10 p.m.