sim_poisson_coords: Simulate random spatial coordinates

View source: R/Sim_Community.R

sim_poisson_coordsR Documentation

Simulate random spatial coordinates

Description

Add random spatial positions to a species abundance distribution.

Usage

sim_poisson_coords(abund_vec, xrange = c(0, 1), yrange = c(0, 1), seed = NULL)

Arguments

abund_vec

Species abundance vector (integer)

xrange

Extent of the community in x-direction (numeric vector of length 2)

yrange

Extent of the community in y-direction (numeric vector of length 2)

seed

Integer. Any integer passed to set.seed for reproducibility.

Value

A community object as defined by community.

Author(s)

Felix May

Examples

abund <- sim_sad(s_pool = 100, n_sim = 1000)
sim_com1 <- sim_poisson_coords(abund)
plot(sim_com1)
summary(sim_com1)


mobsim documentation built on May 29, 2024, 8:15 a.m.