map <- get_map()
ggmap(map, fullpage = TRUE)
map <- get_map(maptype = 'roadmap')
ggmap(map, fullpage = TRUE)
map <- get_map(maptype = 'hybrid')
ggmap(map, fullpage = TRUE)
map <- get_map(maptype = 'satellite')
ggmap(map, fullpage = TRUE)
map <- get_map(source = 'osm')
ggmap(map, fullpage = TRUE)
map <- get_map(source = 'stamen')
ggmap(map, fullpage = TRUE)
map <- get_map(source = 'stamen', maptype = 'watercolor')
ggmap(map, fullpage = TRUE)
map <- get_map(source = 'stamen', maptype = 'toner')
ggmap(map, fullpage = TRUE)
map <- get_map(location = 'texas', zoom = 6, source = 'stamen')
ggmap(map, fullpage = TRUE)
map <- get_map(location = 'united states', zoom = 4, source = 'stamen')
ggmap(map, fullpage = TRUE)
api_key <- '<your api key here>'
map <- get_map(location = 'baylor university', source = 'cloudmade',
maptype = 53428, api_key = api_key, zoom = 14)
ggmap(map, fullpage = TRUE)
Run the code above in your browser using DataLab