eq_create_label: Leaflet Earth Quake Map with Customized Label

Description Usage Arguments Details Value Examples

View source: R/module3.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 earthquake clean 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 labelcolumn variable.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
load_raw_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( annot_col = "popup_text")

## End(Not run)

BFavetto/EarthquakeAnalysis documentation built on Dec. 17, 2021, 9:50 a.m.