eq_create_label: Labelling the pop-up of the geographical map with earthquakes

Description Usage Arguments Details Value Note Examples

Description

Information about the earthquakes like locations, magnitude and the number of deaths are given in a pop-up.

Usage

1

Arguments

data

- file name

Details

The 'eq_create_label' function indicates 3 information about the earthquakes in the pop-up, when hovering over an earthquake. A line about the locations of the earthquake, a line about the magnitude of the earthquakes and a line about the number of deaths.

Value

A pop-up with information about the location, magnitude and the number of deaths, when hovering over an earthquake.

Note

error - An error will be given when there are no column named as "locations", "EQ_PRIMARY" and "DEATHS".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(magrittr)
x <- readr::read_delim("data/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")
x

## End(Not run)

jennychungpy/earthquakes documentation built on May 12, 2019, 2:01 p.m.