eq_map: Map of earthquakes

Description Usage Arguments Value Examples

Description

This function will create a leaflet map of selected earthquakes.

Usage

1
eq_map(data, annot_col)

Arguments

data

the cleaned earthquake data from eq_clean_date(getData())

annot_col

A character. The name of the column in the data that should be used as descriptor.

Value

A leaflet map with earthquakes and annotations.

Examples

1
2
3
4
5
6
7
## Not run: 
eq_clean_data(getData()) %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")

## End(Not run)

EAVWing/SigEarthquakes documentation built on May 27, 2019, 3:29 p.m.