eq_create_label: Create labels for an earthquake location map

Description Usage Arguments Value Examples

Description

Create labels for an earthquake location map

Usage

1

Arguments

df

An NOAA earthquake dataframe, with information on locations, magnitude and death toll of earthquakes.

Value

An HTML-like column vector with information for the map popups.

Examples

1
2
3
4
library(dplyr)
eq_data %>% eq_clean_data() %>% eq_location_clean() %>%
   dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
   mutate(popup_text = eq_create_label(.)) %>% eq_map(annot_col = popup_text)

rafaelcb/NOAA documentation built on May 9, 2019, 1:16 p.m.