eq_map: Create leaflet plot with annotations

Description Usage Arguments Value Examples

Description

This function reads in a dataframe and annotation column and outputs a leaflet plot.

Usage

1
eq_map(data, annot_col)

Arguments

data

A dataframe that contains the annotation column and numeric columns named LATITUDE and LONGITUDE

annot_col

The name of the column that holds the annotations.

Value

A leaflet plot with annotations.

Examples

1
2
3
4
5
data(earthquake_raw)
earthquake_raw %>%
eq_clean_data() %>%
dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
eq_map(annot_col = "DATE")

kjsykora/earthquake documentation built on May 29, 2019, 3:38 a.m.