eq_map: Create a leaflet map showing earthquake locations

Description Usage Arguments Value Examples

Description

This function creates a leaflet map plot showing the epicenter of each earthquake in a dataset.

Usage

1
eq_map(dataset, annot_col)

Arguments

dataset

A dataset generated by eq_clean_data().

annot_col

A string giving the name of a column in dataset. The contents of this will be used to fill in the pop-up window when an earthquake is selected.

Value

This function creates a leaflet map with circles representing the epicenters of the earthquakes. The radius of each circle is determined by the field EQ_PRIMARY.

Examples

1
2
3
4
eq_data <- eq_clean_data("NOAA_earthquakes.txt")
eq_data <- subset(eq_data, Country == "Mexico" & YEAR >= 2000)

eq_map(dataset=eq_data, annot_col = "DATE")

lmitchell4/earthquake documentation built on May 29, 2019, 3:42 a.m.