eq_create_label: More interesting pop-ups for the interactive map used with...

Description Usage Arguments Value Examples

View source: R/eq_create_label.R

Description

More interesting pop-ups for the interactive map used with the eq_map() function

Usage

1
eq_create_label(mapdata)

Arguments

mapdata

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(("extdata","earthquake.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)

willojs/earthquakesNOAA documentation built on Nov. 5, 2019, 12:21 p.m.