eq_map: Interactive Pop-Up Map

Description Usage Arguments Value Examples

View source: R/capcode.R

Description

This function creates an interactive map that shows the location of the earthquakes in the NOAA Significant Earthquakes dataset. The locations are depicted in circular markers which pop-up more information about the earthquakes, if selected.

Usage

1
eq_map(data, annot_col)

Arguments

data

A data frame from the NOAA Significant Earthquakes dataset.

annot_col

The column of the data frame to display informations from when a marker is poped-up.

Value

An object of class "leaflet" (An interactive map)

Examples

1
2
3
4
5
6
## Not run: load("data/data.rda")
data %>%
eq_clean_data() %>%
 dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
 eq_map(annot_col = "DATE")
## End(Not run)

thechibo/earthquakes documentation built on April 15, 2020, 4:56 p.m.