eq_map: Leaflet Map Tools

Description Usage Arguments Details Value Examples

View source: R/module3.R

Description

eq_map creates a leaflet map showing the location of the earthquake.

Usage

1
eq_map(data, annot_col = "Date")

Arguments

data

The earthquake clean data frame

annot_col

The name of the column to be used for annotation

Details

The function maps the epicenters Longitude and Latitude and annotates each point in a popup window.

Value

Returns a leaflet map

Examples

1
2
3
4
5
6
7
8
## Not run: 
load_raw_data() %>%
eq_clean_data() %>%
eq_location_clean() %>%
dplyr::filter(Country == "MEXICO" & lubridate::year(Date) >= 2000)
eq_map(data = NOAA_data, annot_col = "Date")

## End(Not run)

BFavetto/EarthquakeAnalysis documentation built on Dec. 17, 2021, 9:50 a.m.