Description Usage Arguments Details Value Note Author(s) References See Also Examples
Enables the calculation of any binary similarity index via the provision of a formula.
1 2 |
x |
Vegetation data, either as matrix with rows = plots
and columns = species (similarities are calculated between rows!), or as |
coord |
A |
method |
Give the formula for a binary similarity index. Defaults to the formula of Sørensen index. See |
dn |
Neighbor definition. A geographic distance represented by a numeric or a two value vector defining a ring around each plot. Only takes effect when |
normalize |
Logical value indicating whether the values for
|
listin |
if |
listout |
If output is wanted in database format rather than as a |
... |
Arguments to other functions |
Presumably this function will rarely be used because sim
already allows for the calculation of a large variety of binary similarity coefficients. But just in case you found or thought of an alternative this function is provided. For details regarding similarity indices see sim
. You have to give your formula in quotation marks like this: "(2*a)/((2*a) + b + c)".
If listout = FALSE a distance matrix of class dist
is returned. If listout = TRUE, a data.frame
is returned with 7 columns giving the names of the compared plots in the first two and the calculated similarity measure in the third column. The rest of the columns give the values for a, b, c,
and d
(in this order). Naming of the first three columns can be changed but defaults to NBX
(one of the compared plots), NBY
(the other one), used index
(the values of the calculated index). If coord
!= NULL, the following columns are given in addition and the columns a:d
shift to the end of the data.frame.
distance |
Geographical distance between compared plots |
X |
For plotting purposes, the x-coordinate of the virtual position of the calculated similarity value in the center between the two compared plots |
Y |
For plotting purposes, the y-coordinate of the virtual position of the calculated similarity value in the center between the two compared plots |
xdist |
Geographical distance between compared plots, on the x-axis only |
ydist |
Geographical distance between compared plots, on the y-axis only |
In general, concepts of data-handling are taken from vegdist
and the calculation of a
, b
, c
and d
is taken from dist.binary
. Thanks to Jari Oksanen for his vegan
package and the idea to provide a custom build distance formula.
Gerald Jurasinski gerald.jurasinski@uni-rostock.de
Sørensen, T. (1948) A method of establishing groups of equal amplitude in plant sociology based on similarity of species content. Biologiske Skrifter 5: 1-34.
vegdist
, designdist
, dist.binary
,
dsvdis
, dist
for other dissimilarity coefficients, and sim
for a variety of formulae for similarity coefficients.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.