eq_map: Create earthquake map

Description Usage Arguments Value Examples

View source: R/code.R

Description

Function takes a data frame cleaned with eq_clean_data and creates a leadlet map that plots earthquakes with size based on the magnitude of the earthquake. The function also takes a column name (as a string) to use to create hoverover labels for the point.

Usage

1
eq_map(clean_data_frame, annot_col)

Arguments

clean_data_frame

Data frame cleaned with eq_clean_data

annot_col

Column to be used for creating label

Value

Leaflet map (technically returns NULL and draws map to plotting object)

Examples

1
2
3
4
5
6
## Not run: 
earthquakes %>% eq_clean_data(LOCATION_NAME) %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = DATE)

## End(Not run)

khailper/swdevcapstone documentation built on May 20, 2019, 9:22 a.m.