View source: R/Sim_Community.R
community_to_sad | R Documentation |
Get species abundance distribution from community object
community_to_sad(comm)
comm |
Community object |
Object of class sad
, which contains a named integer vector
with species abundances
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.