eq_map: eq_map

Description Usage Arguments Value Examples

Description

This function takes a data argument that must include LATITUDE and LONGITUDE columns, and displays its data points in a leaflet map. The points are depicted as circles, with popup annotations being displayed upon clicking. These annotations depend on the annot_col argument.

Usage

1
eq_map(data, annot_col)

Arguments

data

A Dataframe Object containing the data to plot (Must include a LATITUDE and LONGITUDE colums).

annot_col

Column of 'data' depicting the markers that will be used in the map (upon clicking).

Value

This function adds the map as well as the datapoints, positioned at their respective Lat and Long coordinates, into the current graphics device. Furthermore, it add popup markers for each datapoint depending on the annot_col arguments.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

readr::read_delim("data/signif.txt", delim = "\t") %>%
  eq_clean_data() %>%
  dplyr::filter(COUNTRY == "MEXICO" & lubridate::year(DATE) >= 2000) %>%
  eq_map(annot_col = "DATE")


## End(Not run)

ronybsulca/earthquakeGeoms documentation built on May 6, 2019, 5:03 p.m.