Description Usage Arguments Value See Also Examples
Quick mapbox mapping mapbox
uses ggmap to plot a
mapbox static map
1 2 |
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 |
a ggmap object
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.