community_to_sad: Get species abundance distribution from community object

Description Usage Arguments Value Examples

View source: R/Sim_Community.R

Description

Get species abundance distribution from community object

Usage

1

Arguments

comm

Community object

Value

Object of class sad, which contains a named integer vector with species abundances

Examples

1
2
3
4
5
sim1 <- sim_poisson_community(s_pool = 200, n_sim = 20000, sad_type = "lnorm",
                              sad_coef = list("cv_abund" = 2))
sad1 <- community_to_sad(sim1)
plot(sad1, method = "rank")
plot(sad1, method = "octave")

MoBiodiv/MoBspatial documentation built on July 24, 2021, 6:09 p.m.