ps_sf_ggmap: Ggmap from sf

Description Usage Arguments Value

View source: R/basemap.R

Description

Get ggmap basemap from (padded) sf object.

Usage

1
ps_sf_ggmap(x, pad, source, maptype)

Arguments

x

A sf object.

pad

A numeric vector indicating amount in metres to pad bbox. If vector of length 1, that amount is added to all sides; if vector of length 4 amount is added to left, top, right and bottom, respectively.

source

Google Maps ("google"), OpenStreetMap ("osm"), Stamen Maps ("stamen"), or CloudMade maps ("cloudmade").

maptype

Character string providing map theme. Options available are "terrain", "terrain-background", "satellite", "roadmap", and "hybrid" (google maps), "terrain", "watercolor", and "toner" (stamen maps), or a positive integer for cloudmade maps (see ?get_cloudmademap).

Value

ggmap object.


poissonconsulting/poisspatial documentation built on Oct. 5, 2018, 2:16 p.m.