mapbox: Quick mapbox mapping 'mapbox' uses ggmap to plot a mapbox...

Description Usage Arguments Value See Also Examples

View source: R/mapbox.R

Description

Quick mapbox mapping mapbox uses ggmap to plot a mapbox static map

Usage

1
2
  mapbox(center = c(-77.04, 38.89),
    mapbox = "examples.map-vyofok3q", ...)

Arguments

center

a latitude and longitude vector c(lat,lng)

mapbox

the mapbox map to display, default to example from mapbox

...

arguments for ggmap and arguments for get_mapboxmap

Value

a ggmap object

See Also

ggmap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
getmap(c(-77.04, 38.89))
#set the zoom
getmap(c(-77.04, 38.89),zoom=14)
#setmapbox map
getmap(c(-77.04, 38.89),mapbox="examples.map-vyofok3q")
#set extent for ggmap
getmap(c(-77.04, 38.89),mapbox="examples.map-vyofok3q",extent='devise')
#add markers to the map
marker = c(size='m',icon='a',latlng='-77,38')
markers = list(marker)
getmap(c(-77.04, 38.89),mapbox="examples.map-vyofok3q",markers=markers)

## End(Not run)

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