Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_cloudmademap

Get a CloudMade map.


Description

get_cloudmademap accesses a tile server for Stamen Maps and downloads/stitches map tiles/formats a map image. This function requires an api key which can be obtained for free from http://cloudmade.com/user/show (defunct?). Thousands of maptypes ("styles"), including create-your-own options, are available from http://maps.cloudmade.com/editor (defunct).

Usage

get_cloudmademap(bbox = c(left = -95.80204, bottom = 29.38048, right =
  -94.92313, top = 30.14344), zoom = 10, api_key, maptype = 1,
  highres = TRUE, crop = TRUE, messaging = FALSE, urlonly = FALSE,
  filename = NULL, color = c("color", "bw"), ...)

Arguments

bbox

a bounding box in the format c(lowerleftlon, lowerleftlat, upperrightlon, upperrightlat).

zoom

a zoom level

api_key

character string containing cloud made api key, see details

maptype

an integer of what cloud made calls style, see details

highres

double resolution

crop

crop raw map tiles to specified bounding box

messaging

turn messaging on/off

urlonly

return url only

filename

destination file for download (file extension added according to format). Default NULL means a random tempfile.

color

color or black-and-white

...

...

Value

a ggmap object (a classed raster object with a bounding box attribute)

Author(s)

See Also

http://maps.cloudmade.com/ (defunct), ggmap

Examples

#api_key <- '<your api key here>'
#api_key <- 'b23b0358e87c4ff99f81029eda25c903'

#map <- get_cloudmademap(api_key = api_key)
#ggmap(map)

#map <- get_cloudmademap(maptype = 997, api_key = api_key)
#ggmap(map)

ggmap

Spatial Visualization with ggplot2

v3.0.0
GPL-2
Authors
David Kahle [aut, cre] (<https://orcid.org/0000-0002-9999-1558>), Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), Scott Jackson [aut], Mikko Korpela [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.