View source: R/Sim_Community.R
plot.sad | R Documentation |
Plot species abundance distributions
## S3 method for class 'sad'
plot(x, ..., method = c("octave", "rank"))
x |
Vector with species abundances (integer vector) |
... |
Additional graphical parameters used in |
method |
Plotting method, partial match to |
With method = "octave"
a histogram showing the number
species in several abundance classes is generated. The abundance class
are a simplified version of the "octaves" suggested by Preston (1948), which
are based on log2-binning. The first abundance class includes species
with 1 individual, the second with 2, the third with 3-4, the fourth with 5-8, etc.
With method = "rank"
rank-abundance curve is generated with
species abundance rank on the x-axis (descending) and species abundance on
the y-axis (Hubbell 2001).
This function is called for its side effects and has no return value.
Preston 1948. The Commonness, and rarity, of species. Ecology 29(3):254-283.
Hubbell 2001. The unified neutral theory of biodiversity and biogeography. Princeton University Press.
abund1 <- sim_sad(s_pool = 100, n_sim = 10000, sad_type = "lnorm",
sad_coef = list("cv_abund" = 1))
plot(abund1, method = "octave")
plot(abund1, method = "rank")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.