get_esh: Get extent of suitable habitat (ESH).

Description Usage Arguments Value Examples

Description

Retrieve extent of suitable habitat according to a single environmental variable. Variable should be continous raster (in future add multiple rasters + categorical) variables. Function removes the species extent of occurence outside of minimum and maximum values of raster variable.

Usage

1
get_esh(species_data, species_eoo, habitat_variable)

Arguments

species_data

Output of get_species_data() function. Currently only sp object.

species_eoo

Output of get_eoo() function. Currently only sp object.

habitat_variable

Raster layer. Should be continous variable with same CRS and overlapping extent.

Value

Spatial object (currently only sp class - polygon)

Examples

1
2
3
4
5
6
7
8
sal_atra <- get_species_data("Salamandra atra")
sal_atra_eoo <- get_eoo(sal_atra, return = "sp")
# Load elevation data
srtm_italy <- raster("Y:/Mirza_Cengic/Projects/Other/GSoC/srtm_39_03.tif")

sal_atra_esh <- get_esh(species_data = sal_atra,
                        species_eoo = sal_atra_eoo,
                        habitat_variable = srtm_italy)

MirzaCengic/speciesrangeR documentation built on May 15, 2019, 3:24 p.m.