powered by
Add random spatial positions to a species abundance distribution.
sim_poisson_coords(abund_vec, xrange = c(0, 1), yrange = c(0, 1), seed = NULL)
A community object as defined by community.
community
Species abundance vector (integer)
Extent of the community in x-direction (numeric vector of length 2)
Extent of the community in y-direction (numeric vector of length 2)
Integer. Any integer passed to set.seed for reproducibility.
set.seed
Felix May
abund <- sim_sad(s_pool = 100, n_sim = 1000) sim_com1 <- sim_poisson_coords(abund) plot(sim_com1) summary(sim_com1)
Run the code above in your browser using DataLab