eq_create_label: Create earthquak label

Description Usage Arguments Value Examples

Description

Create earthquak label

Usage

1

Arguments

df

A data.frame such as this obtainded from NOAA.

Value

A column of earthquak annotation; locaion, magnitude and deaths. Ignores the fiels when NA.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# load and clean data
file_path <- system.file("extdata", "signif.tsv", package = "MSDR")
signif <- read_tsv(file_path) %>%
  eq_clean_date %>%
  eq_clean_location

# make graph
signif %>%
filter(COUNTRY == 'MEXICO' & year(date) >= 2000) %>%
  mutate(popup_text = eq_create_label(.)) %>%
  eq_map()

## End(Not run)

MahShaaban/MSDR documentation built on May 22, 2019, 12:41 p.m.