lhs.gmap: Download background images for plots

Description Usage Arguments Details Value Examples

View source: R/lhs.gmap.R

Description

Download background images for plots

Usage

1
2
3
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)

Arguments

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: "roadmap", "satellite", "hybrid", or "terrain"

status

Show status messages, T/F

Details

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).

Value

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.).

Examples

1
2
3
4
5
6
7
## 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)

tlocoh.dev documentation built on May 2, 2019, 5:20 p.m.