eq_map: Create Interactive Map

Description Usage Arguments Value Examples

View source: R/eq_maps.R

Description

eq_map creates an interactive map of earthquakes. It plots events as circles with their radii proportional to the magnitude of the earthquake. Labels can also be passed that will popup when a user clicks on a given event on the map.

Usage

1
eq_map(df, annot_col)

Arguments

df

A data frame containing earthquake data. The data frame should include the LATITUDE, LONGITUDE and EQ_PRIMARY variables.

annot_col

Character string containing the name of the column in df containing a character vector of optional popup text to be shown when a event is clicked on a map.

Value

An html object.

Examples

1
2
3
4
5
6
7
## Not run: 
earthquakes %>% eq_filter_data(countries = c("Mexico"),
                               minimum_date = "1980-01-01",
                               maximum_date = "2018-12-31") %>%
      eq_map(annot_col = "POPUP_TEXT")

## End(Not run)

dtminnick/earthquake documentation built on Nov. 4, 2019, 11:04 a.m.