Simulate species habitats with correlations across space and among species
Source:R/sim_habitat.R
sim_habitat.Rd
Simulate species habitats with correlations across space and among species
Usage
sim_habitat(
critters,
kp,
critter_correlations = NA,
resolution,
patch_area,
rescale_habitat = TRUE,
max_delta = 3,
max_abs_cor = 1,
output = "df"
)
Arguments
- critters
a vector of critters names of length n_species representing the number of species to be simulated
- kp
a rate parameter that governs the rate at which spatial cells become decorrelated with distance. Lower values mean a smoother (more correlated) habitat map
- critter_correlations
leave as NA to randomly simulate correlations across species. Otherwise, a n_species x n_species correlation matrix
- resolution
the resolution of the system
- patch_area