map_leaflet: Map with leaflet package (OpenStreetMap)

Description Usage Arguments Value Examples

View source: R/maps.R

Description

Map with leaflet package (OpenStreetMap)

Usage

1
2
3
4
5
6
7
8
map_leaflet(
  df,
  lng_center = 0,
  lat_center = 0,
  zoom = 3,
  width = 500,
  height = 500
)

Arguments

df

Dataframe having at least 3 columns longitude, latitude,label for label to be plotted

lng_center

longitude of the center of the map

lat_center

latitude of the center of the map

zoom

map zoom, an integer from 3 (continent) to 21 (building), default value 10 (city). "auto" automatically determines the zoom for bounding box specifications, and is defaulted to 10 with center/zoom specifications. maps of the whole world currently not supported.

width

width in pixels

height

height in pixels

Value

A map as a leaflet object

Examples

1
map_leaflet(df, lng_center=0, lat_center=45, zoom=4)

vaulot/dvutils documentation built on Nov. 20, 2021, 11:01 a.m.