eq_create_label: This function creates HTML to be displayed in the pops...

Description Usage Arguments Value Examples

View source: R/leaflet_map.R

Description

This function creates HTML to be displayed in the pops generated by the eq_map function.

Usage

1

Arguments

data

dataframe with LOCATION, MAG, and TOTAL_DEATHS columns

Value

vector containing HTML

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
eq_clean_data() %>%
      dplyr::filter(!is.na(TOTAL_DEATHS)) %>%
      dplyr::select(DATE, YEAR, COUNTRY, REGION, LONGITUDE, LATITUDE, MAG, TOTAL_DEATHS) %>%
      tidyr::drop_na() %>%
      dplyr::filter(COUNTRY == "MEXICO" & YEAR >= 2000)  %>%
      dplyr::mutate(popup_text = eq_create_label(.)) %>%
      eq_map(annot_col = "popup_text")

## End(Not run)

rsizem2/noaa-earthquakes documentation built on Dec. 22, 2021, 7:17 p.m.