eq_create_label: eq_create_label function

Description Usage Arguments Value Examples

View source: R/module3.R

Description

function to generate pop-up markers on map

Usage

1
eq_create_label(eq_map_clean = NULL)

Arguments

eq_map_clean

the cleaned earthquake data file for mapping

Value

a character vector that is used as pop-up text on the leaflet map from the eq_map function

Examples

1
2
3
4
5
6
## Not run: readr::read_delim("earthquakes.tsv.gz", delim = "\t") %>%
 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)

AESpe/R_capstone_final documentation built on Oct. 16, 2020, 12:37 a.m.