eq_create_label: Creates Labes for the leaflet map 'eq_map' creates a string /...

Description Usage Arguments Value Examples

Description

Creates Labes for the leaflet map eq_map creates a string / character combining some information to display in the pop-up

Usage

1

Arguments

data

This data frame is the whole earth quake data

Value

this function gives back a vector with character strings

Examples

1
2
3
4
5
6
7
8
require(magrittr)
data("NOAAearthquakes")

map_example <- NOAAearthquakes %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(date) >= 2000) %>%
dplyr::mutate(popup_text = eq_create_label(.)) %>%
eq_map(annot_col = "popup_text")
map_example

Brunobt80/rPkgNOAADataset documentation built on May 20, 2019, 12:57 a.m.