eq_create_label: Function that creates a popup text for each earthquake.

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function generates a HTML formatted tag to be used in popups.

Usage

1

Arguments

data

Clean earthquake data.

Value

A character vector containing popup text to be used in a leaflet visualization.

Examples

1
2
3
4
5
6
7
8
## Not run: 
file<-system.file("extdata","earthquakes_data.txt.zip",package="Capstone")
eq_location_clean(eq_clean_data(eq_read_data(file))) %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 1980) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
 eq_map(name_col = "popup_text")

## End(Not run)

Fr3ddy1/Capstone documentation built on May 26, 2019, 7:43 p.m.