qmap: Quick map plot

View source: R/qmap.R

qmapR Documentation

Quick map plot

Description

qmap is a wrapper for ggmap() and get_map().

Usage

qmap(location = "houston", ...)

Arguments

location

character; location of interest

...

stuff to pass to ggmap() and get_map()

Value

a ggplot object

Author(s)

David Kahle david@kahle.io

See Also

ggmap() and get_map()

Examples


## Not run:  some requires Google API key; heavy network/time load

location <- "marrs mclean science, waco, texas"
qmap(location)
qmap(location, zoom = 14)
qmap(location, zoom = 14, source = "osm")
qmap(location, zoom = 14, source = "osm", scale = 20000)
qmap(location, zoom = 14, maptype = "satellite")
qmap(location, zoom = 14, maptype = "hybrid")
qmap(location, zoom = 14, maptype = "stamen_toner", source = "stadia")
qmap(location, zoom = 14, maptype = "stamen_watercolor", source = "stadia")
qmap(location, zoom = 14, maptype = "stamen_terrain_background", source = "stadia")
qmap(location, zoom = 14, maptype = "stamen_toner_lite", source = "stadia")

where <- "the white house, washington dc"
wh <- geocode(where)
qmap(where, maprange = TRUE, zoom = 15,
  base_layer = ggplot(aes(x=lon, y=lat), data = wh)) +
  geom_point()




## End(Not run)


dkahle/ggmap documentation built on March 3, 2024, 8:19 a.m.