eq_create_label: eq_create_label

Description Usage Arguments Value Examples

View source: R/eq_map.R

Description

Created description of the earthquake next to the graph

Usage

1
eq_create_label(map_data)

Arguments

map_data

A cleaned data frame with data obtained from NOAA website

Value

An HTML label that can be used as the annotation text in the leaflet map.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
readr::read_delim("signif.txt", delim = "\t") %>%
  eq_clean_data() %>%
  eq_location_clean() %>%
  dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(date) >= 2000) %>%
  dplyr::mutate(popup_text = eq_create_label(.)) %>%
  eq_map(annot_col = "popup_text")

## End(Not run)

marcelamu95/earthquakeGeoms documentation built on Nov. 21, 2019, 4:46 a.m.