eq_create_label: Leaflet Earth Quake Map with Customized Label

Description Usage Arguments Details Value Examples

View source: R/eq_map.R

Description

eq_create_label creates a more informative popup using HTML tags to be used as labels in eq_map.

Usage

1

Arguments

data

The NOAA_data data frame.

Details

This function put together a character string for each earthquake to be used as a more informative label. The label contains the following items:

Value

A character vector using HTML tags to be used as label for annot_col variable.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
NOAA_data <- NOAA_data %>%
eq_clean_data() %>%
eq_location_clean() %>%
 dplyr::filter(Country %in% c("HONDURAS", "MEXICO") & lubridate::year(Date) >= 2000) %>%
 dplyr::mutate(popup_text = eq_create_label(.))

 eq_map(data = NOAA_data, annot_col = "popup_text")

## End(Not run)

ankit2219/masteringr documentation built on Dec. 24, 2021, 1:25 a.m.