ps_sf_ggmap: Ggmap from sf

View source: R/basemap.R

ps_sf_ggmapR Documentation

Ggmap from sf

Description

Get ggmap basemap from (padded) sf object.

Usage

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 Nov. 9, 2023, 10:09 a.m.