eq_map: Create a leaflet map of earthquake data

Description Usage Arguments Value Note Examples

Description

This function reads in a given file and turns into a table.

Usage

1
eq_map(x, annot_col)

Arguments

x

a clean earthquake data.frame

annot_col

a character vector from the earthquake data.frame used to label the popups on the map

Value

A leaflet map

Note

the function will throw an error if x is not a data.frame

the function will throw an error if annot_col is not a non-null column of x

Examples

1
2
3
4
5
## Not run: 
eq_map(clean_earthquake_data, "date")
eq_map(cleaned_earthquake_data, "TOTAL_DEATHS")

## End(Not run)

codyschulz/earthquakeMap documentation built on May 25, 2019, 4:20 p.m.