Calculate Change in Distribution Metrics
calculate_distribution_shifts.RdCalculate two metrics to help describe changes in species distributions - Center of Gravity and Area of Preferred Habitat
Arguments
- abund
model predictions, output from
make_predictionsas a rasterStack. Layers need names that correspond to the time stamps represented.- area_threshold
a value between 0 and 1, defaults to 0.75. The total area of grid cells with the probability of occurrence of a species equal to or above this threshold will be calculated.
- cell_area
a number representing the area of a single model grid cell on which the model is predicted.