eq_create_label: Create HTML labels for earthquakes

Description Usage Arguments Value Examples

Description

Creates HTML labels with location, magnitude, and total deaths for earthquake data.

Usage

1

Arguments

df

Data frame containing at least LOCATION_NAME, EQ_PRIMARY, and TOTAL_DEATHS columns.

Value

Character string with the HTML label.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# This can be used with \code{\link{eq_map}} as follows:
library(dplyr)

earthquakes %>%
  dplyr::mutate(popup_text = eq_create_label(.)) %>%
  eq_map(annot_col = "popup_text")

## End(Not run)

davidbody/earthquakes-package documentation built on May 14, 2019, 10:37 p.m.