eq_create_label: Create an interactive map of earthquake data with labels

Description Usage Arguments Value Examples

Description

This function (eq_create_label) creates and applies formatting to the labels for the points on the interactive earthquake map.

Usage

1

Arguments

data

Name of input data frame on which to apply function.

Value

This function creates labels with formatting for the earthquake data.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 

eq_map_tl <- eq_read_data("signif.txt") %>% 
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")

readr::read_delim("signif.txt", delim = "\t") %>% 
eq_clean_data() %>% 
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>% 
dplyr::mutate(popup_text = eq_create_label(.)) %>% 
eq_map(annot_col = "popup_text")

## End(Not run)

drsmd23/Eq documentation built on May 14, 2019, 10:33 a.m.