eq_create_label: Creates an HTML label that can be used as the annotation text...

Description Usage Arguments Value Examples

View source: R/leaflet.R

Description

Helper function that creates a label column based on other columns' values

Usage

1
eq_create_label(data, label_col = "label_text")

Arguments

data

Data frame containing the filtered data with earthquakes

label_col

Name of the column that will contain annotation text

Value

data frame

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(earthquakes)
eq_clean_data(earthquakes) %>%
eq_location_clean() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_create_label(label_col = "popup_text") %>%
eq_map(annot_col = "popup_text")

## End(Not run)

avidclam/msdr5 documentation built on May 29, 2019, 11:02 p.m.