eq_map: Function to visualize the epicenters of earthquakes with...

Description Usage Arguments Value Examples

Description

This function reads a filtered data frame with earthquakes to visualize. The function maps the epicenters (LATITUDE/LONGITUDE) and annotates each point in a pop-up window containing annotation data stored in a column of the data frame. The user is able to choose which column is used for the annotation in the pop-up with the function argument named annot_col. Each earthquake is shown with a circle, and the radius of the circle is proportional to the earthquake's magnitude.

Usage

1
eq_map(dataframe, annot_col)

Arguments

dataframe

A filtered dataframe with the earthquakes to visualize.

annot_col

A character string indicating the column used for the annotation in the pop-up window.

Value

A leaflet fully interactive map plotting the epicenters of selected earthquakes.

Examples

1
2
3
4
## Not run: 
eq_clean_data("signif.txt") %>% dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATETIME) >= 2000) %>% eq_map(annot_col = "DATETIME")

## End(Not run)

DanielAyllon/EarthQuakeAnalyzer documentation built on May 6, 2019, 1:23 p.m.