getmapbox_map: Get mapbox map 'getmapbox_map' uses the Mapbox Static API to...

Description Usage Arguments Value See Also

View source: R/getmapbox_map.R

Description

Get mapbox map getmapbox_map uses the Mapbox Static API to get map images

Usage

1
2
3
4
  getmapbox_map(center = c(),
    mapbox = "examples.map-vyofok3q", zoom = 13,
    size = c(640, 480), filename = "map.png",
    markers = list())

Arguments

center

a latitude and longitude vector c(lat,lng)

mapbox

the mapbox map to display, default to example from mapbox

zoom

the map zoom stage (1-21)

size

a width and height vector c(width,height)

filename

the name for the saved map

markers

a list of markers

...

arguments for ggmap and arguments for get_mapboxmap

Value

a list of meta information (filename,center,zoom,size)

See Also

ggmap


milafrerichs/plotmapbox documentation built on May 22, 2019, 11:53 p.m.