octavpred-methods | R Documentation |
Creates an object of octav-class
with the frequencies of
species in octaves of abundances predicted by a species abundance
distribution or by a rank-abundance distribution.
object |
an object of class |
sad , rad |
character; root name of sad or rad distribution to
calculate expected percentiles. See |
coef |
named list of numeric values; parameter values of the
distribution given in |
trunc |
non-negative integer, |
oct |
integer vector; the octaves to tabulate abundances, see octav.
If not provided, the |
S |
positive integer; number of species in the sample. |
N |
positive integer; number of individuals in the sample. |
preston |
logical. Should Preston original method be used? See octav. |
signature(object = "fitrad", sad = "missing", rad =
"missing", coef = "missing", trunc = "missing", oct = "ANY", S =
"missing", N = "missing")
number of species in each octave
predicted from a rank-abundance model fitted with function
fitrad
.
signature(object = "fitsad", sad = "missing", rad =
"missing", coef = "missing", trunc = "missing", oct = "ANY", S =
"missing", N = "missing")
number of species in each octave
predicted from an abundance distribution model fitted with function
fitsad
.
signature(object = "missing", sad = "character", rad =
"missing", coef = "list", trunc = "ANY", oct = "ANY", S = "numeric",
N = "numeric")
number of species in each octave predicted from an
abundance distribution named by sad
with parameters
defined in coef
.
signature(object = "numeric", sad = "character", rad =
"missing", coef = "list", trunc = "ANY", oct = "ANY", S = "missing",
N = "missing")
same as previous method, but with S
and
N
taken from a vector of abundances given by object
.
signature(object = "missing", sad = "missing", rad =
"character", coef = "list", trunc = "ANY", oct = "ANY", S =
"numeric", N = "numeric")
number of species in each octave predicted from an
rank-abundance distribution named by rad
with parameters
defined in coef
.
signature(object = "numeric", sad = "missing", rad =
"character", coef = "list", trunc = "ANY", oct = "ANY", S =
"missing", N = "missing")
same as previous method, but with S
and
N
taken from a vector of abundances given by object
.
Paulo I Prado prado@ib.usp.br, Murilo Dantas Miranda and Andre Chalom.
octav
and octav-class
for generic
function and methods to create an octave plot and details on abundance
octaves; fitsad-class
and
fitrad-class
objects, from which you can also get an
object of class octav
with observed and predicted values;
man page of prestonfit
in package vegan for a
detailed account of Preston's octaves and an alternative way to get
octaves and fitting of species abundances distributions.
## Predicted frequencies from a fitted model
## meta-community zero-sum multinomial for BCI data
bci.mzsm <- fitsad(bci, "mzsm")
bci.mzsm.oc <- octavpred(bci.mzsm)
## Preston plot with observed and predicted frequencies
plot(octav(bci))
lines(bci.mzsm.oc)
## Alternative model: local zero-sum multinomial
## Alonso & Mckane (Ecol. Lett. 2004, table 1) give theta = 44 and m = 0.15
bci.lzsm.oc <- octavpred( bci, sad = "volkov", coef =list(theta = 44, m = 0.15, J=sum(bci)) )
## Adding predicted frequencies to the plot
lines(bci.lzsm.oc, col = "red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.