Learn R Programming

raptr (version 1.0.1)

basemap: Basemap

Description

This function retrieves google map data for planning units. The google map data is cached to provide fast plotting capabilities.

Usage

basemap(x, basemap = "hybrid", grayscale = FALSE, force.reset = FALSE)

# S3 method for RapData basemap(x, basemap = "hybrid", grayscale = FALSE, force.reset = FALSE)

# S3 method for RapSolved basemap(x, basemap = "none", grayscale = FALSE, force.reset = FALSE)

Value

list with google map data.

Arguments

x

RapData, RapUnsolved, RapSolved object.

basemap

character type of base map to display. Valid names are "roadmap", "mobile", "satellite", "terrain", "hybrid", "mapmaker-roadmap", "mapmaker-hybrid".

grayscale

logical should base map be gray scale?

force.reset

logical ignore data in cache? Setting this as ignore will make function slower but may avoid bugs in cache system.

See Also

RgoogleMaps::GetMap.bbox(), plot().