Description Usage Arguments Value Note Author(s)
View source: R/population_map.R
This function uses the ggmap
package to grab a map of the area where the
samples in the , are located.
1 | population_map(coords, map.source = "google", map.type = "terrain", zoom = NA)
|
coords |
A |
map.source |
Where the map should be retrieved from. Common options include
|
map.type |
What kind of map to use. Current types include:
|
zoom |
The default zoom level when using google maps (default NA). If omitted the code will attempt to define the map by the bounding box defined by the coords |
A map raster
This is a bit of a rough attempt and should be used only sparingly. I have found that the ability to get Google Maps that cover all the sites is a bit difficult unless you play around with the zoom option. Google has fixed zoom levels so you may need to try this a few times before getting what you want.
Rodney J. Dyer rjdyer@vcu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.