eq_create_label: Add Detailed Annotations to Leaflet Map

Description Usage Arguments Details Value Examples

View source: R/map.R

Description

This function add date, location, magnitude, and total deaths, in an annotation on an interactive map.

Usage

1

Arguments

df

data to plot

Details

Adds annoations to an interactive map created with eq_map.

Value

Returns an interactive leaflet map with detailed annotations when present

Examples

1
2
3
4
5
6
7
8
## Not run: 
readr::read_delim("earthquakes.tsv.gz", 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)

ctaber/NOAA documentation built on Nov. 4, 2019, 9:19 a.m.