eq_map: eq_map

Description Usage Arguments Details Value References Examples

Description

A function to create a leaflet map of earthquakes and annotations.

Usage

1
eq_map(data, annot_col)

Arguments

data

A cleaned version of a NOAA data frame

annot_col

A character. The column of the data frame for which to annotate the pop up window for the selected earthquake.

Details

eq_map creates a map with the epicenters (LATITUDE & LONGITUDE) of selected earthquakes and annotates each point with a pop up window containing annotation data stored in a column of the data frame (e.g. DATE)

Value

A leaflet map with earthquakes and annotations.

References

https://www.ngdc.noaa.gov/nndc/struts/form?t=101650&s=1&d=1

Examples

1
2
3
4
5
6
7
## Not run: 
NOAAdf <- eq_clean_data("signif.txt")
NOAAdf %>%
        dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
        eq_map(annot_col = "DATE")

## End(Not run)

Darwinita/EarthquakingLCP documentation built on May 12, 2019, 8:40 a.m.