eq_map: This is my capstone project during the course "Mastering...

Description Usage Arguments Value Examples

View source: R/week3.R

Description

This is my capstone project during the course "Mastering Software Development in R Capstone" by Roger D. Peng and Brooke Anderson, Johns Hopkins University as a part of "Mastering Software Development in R Professional Certificate" program on Coursera. —————————————————————————– WEEK 3 - Interactive map —————————————————————————– Interactive map with a pop-up date This function creates an interactive map to show the geographical locations of the earthquakes in data. The size of each circle represents the magnitude of the corresponding earthquake. When you click on a circle, you can see the the chosen annotation (e.g. date) of this earthquake as a popup message.

Usage

1
eq_map(data, annot_col)

Arguments

data

data.frame

annot_col

character

Value

leaflet

Examples

1
2
3
4
## Not run: 
data <- eq_location_clean(eq_clean_data(data))
eq_map(data, "Date")
## End(Not run)

cemrecapstone/earthquakes documentation built on Dec. 19, 2021, 2:54 p.m.