eq_map: leaflet map for NOAA sifnificant earthquakes data

Description Usage Arguments Details Examples

Description

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.

Usage

1
eq_map(data, annot_col = "DATE")

Arguments

data

with significant earthquakes data

annot_col

a column for annotation

Details

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. Each earthquake should be shown with a circle, and the radius of the circle should be proportional to the earthquake's magnitude (EQ_PRIMARY).

Examples

1
2
3
4
5
6
7
## Not run: 
eq_location_clean() %>%
   dplyr::filter(COUNTRY %in% c('JAPAN')) %>%
   dplyr::filter(DATE > '2000-01-01') %>%
   eq_map(annot_col="DATE")

## End(Not run)

nobuhiroK/MSDRCapstone3 documentation built on May 31, 2019, 8:49 p.m.