eq_create_label: Create fancy annotations for the leaflet plots

Description Usage Arguments Value Examples

Description

This function reads in a dataframe with LOCATION_NAME, EQ_PRIMARY, and DEATHS as columns. It then creates and html tagged annotation for use in the leaflet plots.

Usage

1

Arguments

data

A dataframe that contains the columns: LOCATION_NAME, EQ_PRIMARY, and DEATHS

Value

A character column with html-tagged annotations

Examples

1
2
3
4
5
6
data(earthquake_raw)
earthquake_raw %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")

kjsykora/earthquake documentation built on May 29, 2019, 3:38 a.m.