Description Usage Arguments Value Author(s) See Also Examples
qmap is a wrapper for ggmap
and
get_map
.
1 |
location |
character; location of interest |
... |
stuff to pass to |
a ggplot object
David Kahle david.kahle@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ## Not run:
# these examples have been excluded for checking efficiency
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 = "toner", source = "stamen")
qmap(location, zoom = 14, maptype = "watercolor", source = "stamen")
qmap(location, zoom = 14, maptype = "terrain-background", source = "stamen")
qmap(location, zoom = 14, maptype = "toner-lite", source = "stamen")
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.