eq_map: Create Interactive Map of Earthquake Data

Description Usage Arguments Details Value Examples

View source: R/map.R

Description

This function plots earthquakes and avaialble information about said earthquakes on an interactive map that will allow the used to click on an earthquake to see the relevant details.

Usage

1
eq_map(df, annot_col = "DATE")

Arguments

df

data to plot'

annot_col

column to use for annotations, defaults to DATE

Details

Creates an interactive map showing the location of the earthquakes and thier date.

Value

Returns an interactive leaflet map

Examples

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

## End(Not run)

ctaber/NOAA documentation built on Nov. 4, 2019, 9:19 a.m.