betadiver(x, method = NA, order = FALSE, help = FALSE, ...)
## S3 method for class 'betadiver':
plot(x, ...)
## S3 method for class 'betadiver':
scores(x, triangular = TRUE, ...)
betadiver
result for
plot
and scores
functions.help
below.FALSE
, returns a 3-column matrix of raw counts.method = NA
, the function returns an object of
class "betadisper"
with elements a
, b
, and
c
. If method
is specified, the function returns a
"dist"
object which can be used in any function analysing
dissimilarities. For beta diversity, particularly useful functions
are betadisper
to study the betadiversity in groups,
adonis
for any model, and mantel
to
compare beta diversities to other dissimilarities or distances
(including geographical distances). Although betadiver
returns a "dist"
object, some indices are similarities and
cannot be used as such in place of dissimilarities, but that is a
severe user error. Functions 10 ("j"
) and 11 ("sor"
)
are two such similarity indices.vegdist
with argument binary = TRUE
. Many
other indices are dissimilarity indices as well. Function betadiver
finds all indices reviewed by Koleff et
al. (2003). All these indices could be found with function
designdist
, but the current function provides a
conventional shortcut. The function only finds the indices. The proper
analysis must be done with functions such as betadisper
,
adonis
or mantel
.
The indices are directly taken from Table 1 of Koleff et al. (2003),
and they can be selected either by the index number or the subscript
name used by Koleff et al. The numbers, names and defining equations
can be seen using betadiver(help = TRUE)
. In all cases where
there are two alternative forms, the one with the term $-1$ is
used. There are several duplicate indices, and the number of distinct
alternatives is much lower than 24 formally provided. The formulations
used in functions differ occasionally from those in Koleff et
al. (2003), but they are still mathematically equivalent. With
method = NA
, no index is calculated, but instead an object of
class betadiver
is returned. This is a list of elements
a
, b
and c
. Function plot
can be used to
display the proportions of these elements in triangular plot as
suggested by Koleff et al. (2003), and scores
extracts the
triangular coordinates or the raw scores. Function plot
returns
invisibly the triangular coordinates as an "ordiplot"
object.
Koleff, P., Gaston, K.J. and Lennon, J.J. (2003) Measuring beta diversity for presence-absence data. Journal of Animal Ecology 72, 367--382.
Whittaker, R.H. (1960) Vegetation of Siskiyou mountains, Oregon and California. Ecological Monographs 30, 279--338.
designdist
for an alternative to implement all
these functions, vegdist
for some canned alternatives,
and betadisper
, adonis
,
mantel
for analysing beta diversity objects.
Functions nestedbetasor
and
nestedbetajac
implement decomposition beta diversity
measures (## Raw data and plotting
data(sipoo)
m <- betadiver(sipoo)
plot(m)
## The indices
betadiver(help=TRUE)
## The basic Whittaker index
d <- betadiver(sipoo, "w")
## This should be equal to Sorensen index (binary Bray-Curtis in
## vegan)
range(d - vegdist(sipoo, binary=TRUE))
Run the code above in your browser using DataLab