eq_map: eq_map

Description Usage Arguments Value Examples

View source: R/eq_map.R

Description

creates a map marking the locations of earthquakes of the builtin tremors dataset

Usage

1
eq_map(data, annot_col = NA)

Arguments

data

the dataset or a subset of it with the quakes you want plotted

annot_col

the columns from the dataset to use for annotations. Alternatively, type popup_text to get Date, Magnitude and Deaths

Value

a map (using leaflet) with the appropriate quake locations

Examples

1
2
3
4
5
m<-tremors %>%
   dplyr::select(COUNTRY, LATITUDE, LONGITUDE, EQ_PRIMARY, DATE, YEAR, DEATHS) %>%
   dplyr::filter(COUNTRY == "JAPAN", YEAR >= 2010) %>%
   Earthquakes::eq_map(annot_col = "popup_text")
   m

cmpear/Earthquakes documentation built on Feb. 1, 2020, 2:19 p.m.