lhs.gmap {tlocoh.dev} | R Documentation |
Download background images for plots
lhs.gmap(lhs, id = NULL, k = NULL, r = NULL, a = NULL, s = NULL, hs.names = NULL, gmap = c("roadmap", "satellite", "hybrid", "terrain")[3], status = TRUE)
lhs |
A LoCoH-hullset object |
id |
The name(s) of individuals to extract |
k |
The k value of hullsets to extract |
r |
The r value of hullsets to extract |
a |
The a value of hullsets to extract |
s |
The s value of hullsets to extract |
hs.names |
The name(s) of saved hullsets to extract |
gmap |
The type of image to download: |
status |
Show status messages, T/F |
This function can be used to download images for plotting hullsets. By downloading them once and storing them as a variable, plotting is faster. One image is obtained for each id (individual).
A list containing one element for each id in lhs
. The list is of class locoh.gmap
.
Each element is another named list containing i) a raster (in the same projection as lhs
, ii) a vector
of color values, and iii) the type of image (e.g., hybrid, terrain, etc.).
## Not run: require(raster) require(dismo) toni.bg <- lhs.gmap(toni.lhs, type="terrain") plot(toni.lhs, iso=T, gmap=toni.bg) ## End(Not run)