eq_map: Earthquake Map

Description Usage Arguments Details Value Examples

Description

Create interactive html-Earthquake map based on leaflet package

Usage

1
eq_map(df, annot_col = "DATE")

Arguments

df

Raw data frame with columns LONGITUDE, LATITUDE, EQ_PRIMARY

annot_col

Column name to use as text for annotations

Details

This function creas an interactive html map with Earthquake Locations marked with Circles whose radius is proportional to the Earthquake magnitude (EQ_PRIMARY). The text supplied in the annotation column will be displayed upon clicking on a specific Earthquake marker

Value

Interactive map object as defined by the leaflet package

Examples

1
2
3
4
5
## Not run: 
readr::read_delim("results.tsv", delim = "\t") %>% eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>% eq_map(annot_col = "DATE")

## End(Not run)

ckoopmann/EQVisualisation documentation built on May 29, 2019, 2:07 p.m.