eq_map: Mapping the earthquake epicenters The function maps the...

Description Usage Arguments Value Examples

Description

Mapping the earthquake epicenters 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. The user should be able to choose which column is used for the annotation in the pop-up with a function argument named annot_col.

Usage

1
eq_map(df_clean, annot_col)

Arguments

df_clean,

data containing the filtered data frame with earthquakes

annot_col

column that should be used for the annotation in the pop-up

Value

This function returns a leaflet map with earthquake epicentres and annotations within pop-up window

Examples

1
2
3
4
5
6
## Not run: 
df %>%
  dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
  eq_map(annot_col = "DATE")
  
## End(Not run)

Liddlle/capstone documentation built on June 5, 2019, 8:49 p.m.