eq_map: Function that plot the earthquake Data in an Interactive Map.

Description Usage Arguments Value Note Examples

View source: R/functions.R

Description

The Earthquakes will be plot using its longitude and latitude information. The user can select a column in order to obtain information about the earthquake.

Usage

1
eq_map(data, name_col)

Arguments

data

Clean earthquake data.

name_col

Name of a column which will be use to show information about the earthquake.

Value

This function returns an interactive map.

Note

If an invalid column name is provided, the function provides a warning and uses the LOCATION_NAME column as teh annotation column.

Examples

1
2
3
4
5
6
7
## Not run: 
file<-system.file("extdata","earthquakes_data.txt.zip",package="Capstone")
eq_location_clean(eq_clean_data(eq_read_data(file))) %>%
dplyr::filter(COUNTRY == "VENEZUELA" & lubridate::year(DATE) >= 1980) %>%
eq_map(name_col = "DATE")

## End(Not run)

Fr3ddy1/Capstone documentation built on May 26, 2019, 7:43 p.m.