eq_map: Generate leaflet map with annotations

Description Usage Arguments Value Examples

View source: R/leaflet_maps.R

Description

Subset of earthquake data plotted on a map using leaflet. Input dataframe requires LONGITUDE, LATITUDE and EQ_PRIMARY columns. Other required argument: annotation column ('annot_col')

Usage

1
eq_map(df, annot_col)

Arguments

df

dataframe for plotting

annot_col

column from input dataframe for annotation

Value

Returns an interactive leaflet map

Examples

1
2
3
4
5
6
7
8
## Not run: 
 map1 <-load_data() %>%
   eq_clean_data() %>%
   dplyr::filter(COUNTRY == "GREECE" & lubridate::year(date) >= 2002) %>%
   eq_map(annot_col = "date")
 print(map1)

## End(Not run)

lakrobinson/noaar2 documentation built on Dec. 1, 2020, 9:35 p.m.