emd_env | R Documentation |
Process UD raster to calculate EMD with pacakge 'transport'
emd_env(rs1, rs2, nbins = 50)
rs1 |
A RasterStack with two layers: (1) the rasterized UD and (2) the values of the environmental covariate. |
rs2 |
A RasterStack with two layers: (1) the rasterized UD and (2) the values of the environmental covariate. |
nbins |
a numeric vector of length == 1 giving the number of bins to discretize environmental space into. Will create a sequence from the min – max environmental values (from both ranges combined). Defaults to 50. |
EMD between rs1 and rs2 in one dimension of environmental space.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.