map_world_google: Background map using the ggmap package

Description Usage Arguments Value Examples

View source: R/maps.R

Description

Background map using the ggmap package

Usage

1
map_world_google(location = c(0, 0), zoom = 3, maptype = "satellite")

Arguments

location

an address, longitude/latitude pair (in that order), or left/bottom/right/top bounding box

zoom

map zoom, an integer from 3 (continent) to 21 (building), default value 10 (city). "auto" automatically determines the zoom for bounding box specifications, and is defaulted to 10 with center/zoom specifications. maps of the whole world currently not supported.

maptype

character string providing map theme. options available are "terrain", "terrain-background", "satellite", "roadmap", and "hybrid" (google maps)

Value

A map as a ggplot object

Examples

1
2
3
map_world_google() + geom_point(data=cultures_one_year, aes(x=Longitude, y=Latitude), fill="blue", size=2, shape=21)
map_world_google(location="Singapore", zoom=11 ,maptype="hybrid")
map_world_google(location="Paris", zoom="auto", maptype="terrain")

vaulot/dvutils documentation built on Nov. 20, 2021, 11:01 a.m.