eq_map: Visualize earthquakes data on leaflet Map.

Description Usage Arguments Value Examples

View source: R/map.R

Description

Takes a clean NOAA data frame with earthquakes to visualize. Maps the epicenters (LATITUDE/LONGITUDE) and annotates each earthquake with a popup.

Usage

1
eq_map(data, annotation)

Arguments

data

Filtered dataframe of NOAA earthquakes dataset

annotation

Column name from dataset used as annotation in the popup

Value

leaflet MAP shown with a circle markers, and the radius of the circle marker is proportional to the earthquake's magnitude.

Examples

1
2
3
4
5
6
7
8
## Not run: 
 eq_map(data, annotation = "DATE")

 data %>%
       dplyr::filter(COUNTRY %in% COUNTRIES & YEAR >= 2000) %>%
       eq_map(annotation = "DATE")

## End(Not run)

blauwers/rEarthQuakes documentation built on May 7, 2019, 2:54 a.m.