eq_map: Earthquake Map

Description Usage Arguments Value Examples

Description

This is a method to map the earthquake data. It passes the data to leaflet

Usage

1
eq_map(x, annot_col)

Arguments

x

Data set to display

annot_col

Column that contained the annotated text that pops up.

Value

This function returns a leaflet to display

Examples

1
2
3
4
5
6
7
library(dplyr)
library(lubridate)
library(readr)
raw_data<-readr::read_tsv(system.file("extdata", "signif.txt", package = "RCapstone"))
eq_clean_data(raw_data) %>% eq_location_clean() %>%
 dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
 eq_map(annot_col = "DATE")

JamasEnright/RCapstone documentation built on May 7, 2019, 9:42 p.m.