eq_map: Plot map with earthquakes

Description Usage Arguments Value Examples

View source: R/Module3_functions.R

Description

This function plots map with earthquakes. One or several countries can be chosen.

Usage

1
eq_map(data, annot_col)

Arguments

data

Dataset with variables LOCATION_NAME, EQ_PRIMARY (magnitude) and TOTAL_DEATHS for number of deaths.

annot_col

Column name to be used for annotations.

Value

Map plot with interactive labels.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# With several countries and popup text
readr::read_delim("signif.txt", delim = "\t") %>%
 eq_clean_data() %>%
 dplyr::filter(COUNTRY == "ITALY" | COUNTRY == "TURKEY" & lubridate::year(DATE) >= 2000) %>%
 dplyr::mutate(popup_text = eq_create_label(.)) %>%
 eq_map(annot_col = "popup_text")

## End(Not run).

piavat/eqPlotc5 documentation built on Feb. 20, 2021, 12:15 a.m.