eq_map: Map NOAA Earthquake Data

Description Usage Arguments Value Examples

View source: R/eqvis.R

Description

This function creates a leaflet map of the significant earthquake data provided and includes a popup showing the value of the character vector provided. The size of the circle marker is based on the magnitude of the earthquake.

Usage

1
eq_map(data, annot_col = "DATE")

Arguments

data

data.frame of cleaned (see eq_clean_data) NOAA significant earthquake dataset

annot_col

default 'DATE'; character vector to use for circle marker popup; See eq_create_label to create text label including location, magnitude, and deaths

Value

Returns a Leaflet map widget of the earthquake data.

Examples

1
2
3
4
5
6
## Not run: sample_eq %>% 
eq_clean_data() %>% 
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>% 
dplyr::mutate(popup_text = eq_create_label(.)) %>% 
eq_map(annot_col = "popup_text")
## End(Not run)

kaquilino/eqvis documentation built on July 20, 2017, 6:32 a.m.