eq_create_label: Function to create a pop-up of text

Description Usage Arguments Value Examples

View source: R/eq_create_label.R

Description

Function to create a pop-up of text

Usage

1

Arguments

data

A Dataframe

Value

A leaflet map with pop-up text containing location name, magnitude and total deaths

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data = system.file('extdata', 'earthquakesData.tsv', package ='masteringSoftwareDevelopmentinR') %>%
data = read_data(data) %>%
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)

SanjayShetty01/masteringSoftwareDevelopmentinR documentation built on Dec. 18, 2021, 12:57 p.m.