leafserv: Generate a leaflet map for a country

Description Usage Arguments Value Examples

View source: R/leafserv.R

Description

This function is used to create a leaflet map using longitude, latitude coordinates and state names from a dataframe. By parsing this information into the leafserv() function, a leaflet map of the desired country will be generated.

Usage

1
leafserv(Long, Lat, State)

Arguments

Long

The longitude coordinate of the country.

Lat

The latitude coordinate of the country.

State

The state(s) within the country. This appears as a popup on the map.

Value

A leaflet map with the outline of the desired country is displayed. On the map, the longitude and latitude coordinates of the states are plotted.

Examples

1
2
3
4
## Not run: 
leafserv(df$Long, df$Lat, df$State)

## End(Not run)

etc5523-2020/r-package-assessment-jthoma48 documentation built on Jan. 1, 2021, 1:12 a.m.