eq_map: Function to plot earthquakes sites in a map

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function receives a data frame and a column with annotation to be plotted inside a popup in each earthquake.

Usage

1
eq_map(data, annot_col)

Arguments

data

Dataframe with earthquake data

annot_col

Char array with html data to be plotted in a popup

Value

Map with earthquakes sites

Examples

1
2
3
4
5
6
7
8
## Not run: 
readr::read_delim("earthquakes.txt", delim = "\t") %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY %in% c("CHINA", "USA") & lubridate::year(DATE) >= 2000) %>%
mutate(popup_text = eq_create_label(.)) %>%
eq_map()

## End(Not run)

danielfsilva88/quakeTools documentation built on Sept. 13, 2020, 12:13 a.m.