eq_create_label: Build an html label for earthquakes

Description Usage Arguments Value See Also Examples

Description

Create a nicely formatted HTML label for use with eq_map showing Location, Magnatude, and Total Deaths. Missing values are skipped in the created label

Usage

1

Arguments

data

A dataframe containing location names in column LOCATION_NAME, earthquake magnatude in columnEQ_PRIMARY, and total deaths caused in column TOTAL_DEATHS. The included EQ_NAA dataframe is already correctly formatted

Value

A character vector of formatted html strings to label the popups in eq_map

See Also

eq_map, leaflet

Examples

1
2
3
eq_create_label(data.frame(
       LOCATION_NAME = "Nowhere",
       EQ_PRIMARY = 0.0, TOTAL_DEATHS = 0))

jmmark/QuakeCoursera documentation built on May 3, 2019, 5:18 p.m.