eq_create_label: Labels for Interactive Map

Description Usage Arguments Value Examples

View source: R/capcode.R

Description

This function creates detailed labels for the interactive map, so that the pop-up markers include more information (Location name, magnitude of the earthquake and number of victims) about the earthquakes.

Usage

1

Arguments

data

A data frame from the NOAA Significant Earthquakes dataset.

Value

Character: A vector with the label text

Examples

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

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